#2A33A8#2A33A8

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

Color values

HEX#2A33A8
RGBrgb(42, 51, 168)
HSLhsl(236, 60%, 41%)
HSVhsv(236, 75%, 66%)
CMYKcmyk(75%, 69.6%, 0%, 34.1%)
CIE-LABlab(28.61, 37.34, -63.47)
CIE-LCHlch(28.61, 73.64, 300.47°)
OKLaboklab(39.99% 0.0045 -0.1836)
OKLCHoklch(39.99% 0.184 271.4)
XYZxyz(9.2042, 5.6861, 37.6506)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A33A8 #A89F2A
analogous
#2A72A8 #2A33A8 #602AA8
triadic
#2A33A8 #A82A33 #33A82A
tetradic
#2A33A8 #A82A72 #A89F2A #2AA860
square
#2A33A8 #A82A72 #A89F2A #2AA860
split-complementary
#2A33A8 #A8602A #72A82A
monochromatic
#121546 #1E2477 #2A33A8 #404ACF #7179DB

Accessibility & contrast

On white

9.83
#2A33A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A33A8
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A33A8#FFFFFF#000000##FFFFFF
##2A33A81.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a33a8;
/* rgb */ color: rgb(42, 51, 168);
/* oklch */ color: oklch(40.0% 0.184 271.4);
Tailwind
colors: {
  custom: {
    50: '#786bc3',
    500: '#2a33a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a33a8;
$custom-light: #786bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a33a8",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 168
  },
  "hsl": {
    "h": 235.714,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39988,
    "c": 0.18369,
    "h": 271.4
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#2A33A8
secondary
#C3BC6B
accent
#D845E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A33A8

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

Preview Lab → · Contrast checker → · Palette generator →

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