#2D42AC#2D42AC

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

Color values

HEX#2D42AC
RGBrgb(45, 66, 172)
HSLhsl(230, 59%, 43%)
HSVhsv(230, 74%, 67%)
CMYKcmyk(73.8%, 61.6%, 0%, 32.5%)
CIE-LABlab(32.77, 29.50, -59.04)
CIE-LCHlch(32.77, 66.00, 296.55°)
OKLaboklab(43.19% -0.0022 -0.1705)
OKLCHoklch(43.19% 0.171 269.2)
XYZxyz(10.4742, 7.4318, 39.9042)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42AC #AC972D
analogous
#2D81AC #2D42AC #582DAC
triadic
#2D42AC #AC2D42 #42AC2D
tetradic
#2D42AC #AC2D81 #AC972D #2DAC58
square
#2D42AC #AC2D81 #AC972D #2DAC58
split-complementary
#2D42AC #AC582D #81AC2D
monochromatic
#141D4B #202F7B #2D42AC #475ECF #7888DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D42AC#FFFFFF#000000##FFFFFF
##2D42AC1.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)
#0053AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2d42ac;
/* rgb */ color: rgb(45, 66, 172);
/* oklch */ color: oklch(43.2% 0.171 269.2);
Tailwind
colors: {
  custom: {
    50: '#7876c6',
    500: '#2d42ac',
    950: '#000000',
  },
}
SCSS
$custom: #2d42ac;
$custom-light: #7876c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42ac",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 230.079,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4319,
    "c": 0.17052,
    "h": 269.2
  },
  "luminance": 0.07433
}

Semantic roles & 50–950 ramp

primary
#2D42AC
secondary
#C4B671
accent
#C846E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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