#2D42A9#2D42A9

#2D42A9 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.166 H 269.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2D42A9
RGBrgb(45, 66, 169)
HSLhsl(230, 58%, 42%)
HSVhsv(230, 73%, 66%)
CMYKcmyk(73.4%, 60.9%, 0%, 33.7%)
CIE-LABlab(32.52, 28.39, -57.65)
CIE-LCHlch(32.52, 64.26, 296.21°)
OKLaboklab(42.93% -0.0022 -0.1664)
OKLCHoklch(42.93% 0.166 269.2)
XYZxyz(10.1894, 7.3178, 38.4039)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42A9 #A9942D
analogous
#2D80A9 #2D42A9 #562DA9
triadic
#2D42A9 #A92D42 #42A92D
tetradic
#2D42A9 #A92D80 #A9942D #2DA956
square
#2D42A9 #A92D80 #A9942D #2DA956
split-complementary
#2D42A9 #A9562D #80A92D
monochromatic
#131C48 #202F79 #2D42A9 #465DCE #7687DA

Accessibility & contrast

On white

8.52
#2D42A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2D42A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42A9
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42A9#FFFFFF#000000##FFFFFF
##2D42A91.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d42a9;
/* rgb */ color: rgb(45, 66, 169);
/* oklch */ color: oklch(42.9% 0.166 269.2);
Tailwind
colors: {
  custom: {
    50: '#7876c3',
    500: '#2d42a9',
    950: '#000000',
  },
}
SCSS
$custom: #2d42a9;
$custom-light: #7876c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42a9",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 229.839,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42926,
    "c": 0.16645,
    "h": 269.2
  },
  "luminance": 0.07319
}

Semantic roles & 50–950 ramp

primary
#2D42A9
secondary
#C2B46F
accent
#C747E1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2D42A9

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

Preview Lab → · Contrast checker → · Palette generator →

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