#2A33A4#2A33A4

#2A33A4 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.179 H 271.6°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2A33A4
RGBrgb(42, 51, 164)
HSLhsl(236, 59%, 40%)
HSVhsv(236, 74%, 64%)
CMYKcmyk(74.4%, 68.9%, 0%, 35.7%)
CIE-LABlab(28.22, 35.91, -61.69)
CIE-LCHlch(28.22, 71.39, 300.21°)
OKLaboklab(39.59% 0.0049 -0.1785)
OKLCHoklch(39.59% 0.179 271.6)
XYZxyz(8.8372, 5.5393, 35.7182)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33A4 #A49B2A
analogous
#2A70A4 #2A33A4 #5E2AA4
triadic
#2A33A4 #A42A33 #33A42A
tetradic
#2A33A4 #A42A70 #A49B2A #2AA45E
square
#2A33A4 #A42A70 #A49B2A #2AA45E
split-complementary
#2A33A4 #A45E2A #70A42A
monochromatic
#111543 #1E2473 #2A33A4 #3E48CD #6E76DA

Accessibility & contrast

On white

9.96
#2A33A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A33A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A33A4
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33A4#FFFFFF#000000##FFFFFF
##2A33A41.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A7
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a33a4;
/* rgb */ color: rgb(42, 51, 164);
/* oklch */ color: oklch(39.6% 0.179 271.6);
Tailwind
colors: {
  custom: {
    50: '#776bc0',
    500: '#2a33a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a33a4;
$custom-light: #776bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33a4",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 164
  },
  "hsl": {
    "h": 235.574,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.3959,
    "c": 0.17853,
    "h": 271.6
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#2A33A4
secondary
#C1BA69
accent
#D745E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A33A4

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

Preview Lab → · Contrast checker → · Palette generator →

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