#2A35A4#2A35A4

#2A35A4 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.9% C 0.176 H 271.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2A35A4
RGBrgb(42, 53, 164)
HSLhsl(235, 59%, 40%)
HSVhsv(235, 74%, 64%)
CMYKcmyk(74.4%, 67.7%, 0%, 35.7%)
CIE-LABlab(28.69, 34.65, -60.92)
CIE-LCHlch(28.69, 70.09, 299.63°)
OKLaboklab(39.93% 0.0037 -0.1762)
OKLCHoklch(39.93% 0.176 271.2)
XYZxyz(8.9265, 5.7179, 35.7480)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35A4 #A4992A
analogous
#2A72A4 #2A35A4 #5C2AA4
triadic
#2A35A4 #A42A35 #35A42A
tetradic
#2A35A4 #A42A72 #A4992A #2AA45C
square
#2A35A4 #A42A72 #A4992A #2AA45C
split-complementary
#2A35A4 #A45C2A #72A42A
monochromatic
#111643 #1E2573 #2A35A4 #3E4BCD #6E78DA

Accessibility & contrast

On white

9.80
#2A35A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A35A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35A4
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35A4#FFFFFF#000000##FFFFFF
##2A35A41.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#003EA2
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a35a4;
/* rgb */ color: rgb(42, 53, 164);
/* oklch */ color: oklch(39.9% 0.176 271.2);
Tailwind
colors: {
  custom: {
    50: '#776cc0',
    500: '#2a35a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a35a4;
$custom-light: #776cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35a4",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 234.59,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39932,
    "c": 0.17623,
    "h": 271.2
  },
  "luminance": 0.05719
}

Semantic roles & 50–950 ramp

primary
#2A35A4
secondary
#C1B969
accent
#D445E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A35A4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2A35A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva