#2A33A6#2A33A6

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

Color values

HEX#2A33A6
RGBrgb(42, 51, 166)
HSLhsl(236, 60%, 41%)
HSVhsv(236, 75%, 65%)
CMYKcmyk(74.7%, 69.3%, 0%, 34.9%)
CIE-LABlab(28.41, 36.63, -62.59)
CIE-LCHlch(28.41, 72.52, 300.34°)
OKLaboklab(39.79% 0.0047 -0.1811)
OKLCHoklch(39.79% 0.181 271.5)
XYZxyz(9.0193, 5.6121, 36.6769)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33A6 #A69D2A
analogous
#2A71A6 #2A33A6 #5F2AA6
triadic
#2A33A6 #A62A33 #33A62A
tetradic
#2A33A6 #A62A71 #A69D2A #2AA65F
square
#2A33A6 #A62A71 #A69D2A #2AA65F
split-complementary
#2A33A6 #A65F2A #71A62A
monochromatic
#111544 #1E2475 #2A33A6 #3F49CE #7077DB

Accessibility & contrast

On white

9.89
#2A33A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A33A6
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33A6#FFFFFF#000000##FFFFFF
##2A33A61.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a33a6;
/* rgb */ color: rgb(42, 51, 166);
/* oklch */ color: oklch(39.8% 0.181 271.5);
Tailwind
colors: {
  custom: {
    50: '#776bc2',
    500: '#2a33a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a33a6;
$custom-light: #776bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33a6",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 166
  },
  "hsl": {
    "h": 235.645,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39789,
    "c": 0.18112,
    "h": 271.5
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A33A6

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

Preview Lab → · Contrast checker → · Palette generator →

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