#2D3A8E#2D3A8E

#2D3A8E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.139 H 271.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2D3A8E
RGBrgb(45, 58, 142)
HSLhsl(232, 52%, 37%)
HSVhsv(232, 68%, 56%)
CMYKcmyk(68.3%, 59.2%, 0%, 44.3%)
CIE-LABlab(28.21, 23.67, -48.27)
CIE-LCHlch(28.21, 53.76, 296.12°)
OKLaboklab(39.03% 0.0041 -0.139)
OKLCHoklch(39.03% 0.139 271.7)
XYZxyz(7.4761, 5.5363, 26.2606)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3A8E #8E812D
analogous
#2D6B8E #2D3A8E #512D8E
triadic
#2D3A8E #8E2D3A #3A8E2D
tetradic
#2D3A8E #8E2D6B #8E812D #2D8E51
square
#2D3A8E #8E2D6B #8E812D #2D8E51
split-complementary
#2D3A8E #8E512D #6B8E2D
monochromatic
#101431 #1E2760 #2D3A8E #3C4DBC #6775CF

Accessibility & contrast

On white

9.96
#2D3A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2D3A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3A8E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3A8E#FFFFFF#000000##FFFFFF
##2D3A8E1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3a8e;
/* rgb */ color: rgb(45, 58, 142);
/* oklch */ color: oklch(39.0% 0.139 271.7);
Tailwind
colors: {
  custom: {
    50: '#7270b0',
    500: '#2d3a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d3a8e;
$custom-light: #7270b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3a8e",
  "rgb": {
    "r": 45,
    "g": 58,
    "b": 142
  },
  "hsl": {
    "h": 231.959,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39033,
    "c": 0.13903,
    "h": 271.7
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#2D3A8E
secondary
#B5AA61
accent
#C84CDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D3A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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