#2D42A4#2D42A4

#2D42A4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.160 H 269.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2D42A4
RGBrgb(45, 66, 164)
HSLhsl(229, 57%, 41%)
HSVhsv(229, 73%, 64%)
CMYKcmyk(72.6%, 59.8%, 0%, 35.7%)
CIE-LABlab(32.11, 26.52, -55.32)
CIE-LCHlch(32.11, 61.35, 295.61°)
OKLaboklab(42.49% -0.0022 -0.1596)
OKLCHoklch(42.49% 0.16 269.2)
XYZxyz(9.7289, 7.1337, 35.9790)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42A4 #A48F2D
analogous
#2D7DA4 #2D42A4 #532DA4
triadic
#2D42A4 #A42D42 #42A42D
tetradic
#2D42A4 #A42D7D #A48F2D #2DA453
square
#2D42A4 #A42D7D #A48F2D #2DA453
split-complementary
#2D42A4 #A4532D #7DA42D
monochromatic
#131B44 #202F74 #2D42A4 #435BCB #7385D9

Accessibility & contrast

On white

8.65
#2D42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2D42A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42A4
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42A4#FFFFFF#000000##FFFFFF
##2D42A41.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d42a4;
/* rgb */ color: rgb(45, 66, 164);
/* oklch */ color: oklch(42.5% 0.160 269.2);
Tailwind
colors: {
  custom: {
    50: '#7776c0',
    500: '#2d42a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d42a4;
$custom-light: #7776c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42a4",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 229.412,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42493,
    "c": 0.15962,
    "h": 269.2
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#2D42A4
secondary
#C0B16D
accent
#C548E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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