#2B42AD#2B42AD

#2B42AD is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.172 H 268.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#2B42AD
RGBrgb(43, 66, 173)
HSLhsl(229, 60%, 42%)
HSVhsv(229, 75%, 68%)
CMYKcmyk(75.1%, 61.8%, 0%, 32.2%)
CIE-LABlab(32.76, 29.63, -59.66)
CIE-LCHlch(32.76, 66.61, 296.41°)
OKLaboklab(43.18% -0.0042 -0.1724)
OKLCHoklch(43.18% 0.172 268.6)
XYZxyz(10.4847, 7.4260, 40.4079)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B42AD #AD962B
analogous
#2B83AD #2B42AD #552BAD
triadic
#2B42AD #AD2B42 #42AD2B
tetradic
#2B42AD #AD2B83 #AD962B #2BAD55
square
#2B42AD #AD2B83 #AD962B #2BAD55
split-complementary
#2B42AD #AD552B #83AD2B
monochromatic
#131D4B #1F2F7C #2B42AD #455DD1 #7688DD

Accessibility & contrast

On white

8.45
#2B42AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B42AD
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B42AD#FFFFFF#000000##FFFFFF
##2B42AD1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b42ad;
/* rgb */ color: rgb(43, 66, 173);
/* oklch */ color: oklch(43.2% 0.172 268.6);
Tailwind
colors: {
  custom: {
    50: '#7876c6',
    500: '#2b42ad',
    950: '#000000',
  },
}
SCSS
$custom: #2b42ad;
$custom-light: #7876c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b42ad",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 229.385,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4318,
    "c": 0.17242,
    "h": 268.6
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#2B42AD
secondary
#C4B56F
accent
#C744E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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