#2B42AE#2B42AE

#2B42AE is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.174 H 268.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2B42AE
RGBrgb(43, 66, 174)
HSLhsl(229, 60%, 43%)
HSVhsv(229, 75%, 68%)
CMYKcmyk(75.3%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.84, 30.01, -60.12)
CIE-LCHlch(32.84, 67.19, 296.52°)
OKLaboklab(43.27% -0.0042 -0.1737)
OKLCHoklch(43.27% 0.174 268.6)
XYZxyz(10.5818, 7.4649, 40.9194)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42AE #AE972B
analogous
#2B83AE #2B42AE #562BAE
triadic
#2B42AE #AE2B42 #42AE2B
tetradic
#2B42AE #AE2B83 #AE972B #2BAE56
square
#2B42AE #AE2B83 #AE972B #2BAE56
split-complementary
#2B42AE #AE562B #83AE2B
monochromatic
#131D4C #1F2F7D #2B42AE #455ED1 #7688DD

Accessibility & contrast

On white

8.42
#2B42AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2B42AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B42AE
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42AE#FFFFFF#000000##FFFFFF
##2B42AE1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b42ae;
/* rgb */ color: rgb(43, 66, 174);
/* oklch */ color: oklch(43.3% 0.174 268.6);
Tailwind
colors: {
  custom: {
    50: '#7876c7',
    500: '#2b42ae',
    950: '#000000',
  },
}
SCSS
$custom: #2b42ae;
$custom-light: #7876c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42ae",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 229.466,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43269,
    "c": 0.17376,
    "h": 268.6
  },
  "luminance": 0.07466
}

Semantic roles & 50–950 ramp

primary
#2B42AE
secondary
#C5B670
accent
#C844E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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