#2A33A5#2A33A5

#2A33A5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.180 H 271.5°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2A33A5
RGBrgb(42, 51, 165)
HSLhsl(236, 59%, 41%)
HSVhsv(236, 75%, 65%)
CMYKcmyk(74.5%, 69.1%, 0%, 35.3%)
CIE-LABlab(28.32, 36.27, -62.14)
CIE-LCHlch(28.32, 71.95, 300.27°)
OKLaboklab(39.69% 0.0048 -0.1798)
OKLCHoklch(39.69% 0.18 271.5)
XYZxyz(8.9279, 5.5756, 36.1957)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33A5 #A59C2A
analogous
#2A70A5 #2A33A5 #5E2AA5
triadic
#2A33A5 #A52A33 #33A52A
tetradic
#2A33A5 #A52A70 #A59C2A #2AA55E
square
#2A33A5 #A52A70 #A59C2A #2AA55E
split-complementary
#2A33A5 #A55E2A #70A52A
monochromatic
#111543 #1E2474 #2A33A5 #3E49CE #6F77DA

Accessibility & contrast

On white

9.93
#2A33A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A33A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A33A5
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33A5#FFFFFF#000000##FFFFFF
##2A33A51.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a33a5;
/* rgb */ color: rgb(42, 51, 165);
/* oklch */ color: oklch(39.7% 0.180 271.5);
Tailwind
colors: {
  custom: {
    50: '#776bc1',
    500: '#2a33a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a33a5;
$custom-light: #776bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33a5",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 235.61,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39689,
    "c": 0.17982,
    "h": 271.5
  },
  "luminance": 0.05577
}

Semantic roles & 50–950 ramp

primary
#2A33A5
secondary
#C1BB69
accent
#D745E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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