#2A33A7#2A33A7

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

Color values

HEX#2A33A7
RGBrgb(42, 51, 167)
HSLhsl(236, 60%, 41%)
HSVhsv(236, 75%, 65%)
CMYKcmyk(74.9%, 69.5%, 0%, 34.5%)
CIE-LABlab(28.51, 36.98, -63.03)
CIE-LCHlch(28.51, 73.08, 300.40°)
OKLaboklab(39.89% 0.0046 -0.1824)
OKLCHoklch(39.89% 0.182 271.4)
XYZxyz(9.1114, 5.6490, 37.1619)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33A7 #A79E2A
analogous
#2A71A7 #2A33A7 #5F2AA7
triadic
#2A33A7 #A72A33 #33A72A
tetradic
#2A33A7 #A72A71 #A79E2A #2AA75F
square
#2A33A7 #A72A71 #A79E2A #2AA75F
split-complementary
#2A33A7 #A75F2A #71A72A
monochromatic
#111545 #1E2476 #2A33A7 #3F4ACF #7078DB

Accessibility & contrast

On white

9.86
#2A33A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A33A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A33A7
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33A7#FFFFFF#000000##FFFFFF
##2A33A71.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#003DA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a33a7;
/* rgb */ color: rgb(42, 51, 167);
/* oklch */ color: oklch(39.9% 0.182 271.4);
Tailwind
colors: {
  custom: {
    50: '#776bc2',
    500: '#2a33a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a33a7;
$custom-light: #776bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33a7",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 167
  },
  "hsl": {
    "h": 235.68,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39888,
    "c": 0.18241,
    "h": 271.4
  },
  "luminance": 0.0565
}

Semantic roles & 50–950 ramp

primary
#2A33A7
secondary
#C2BC6B
accent
#D845E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2A33A7

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

Preview Lab → · Contrast checker → · Palette generator →

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