#2D3D87#2D3D87

#2D3D87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.125 H 270.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2D3D87
RGBrgb(45, 61, 135)
HSLhsl(229, 50%, 35%)
HSVhsv(229, 67%, 53%)
CMYKcmyk(66.7%, 54.8%, 0%, 47.1%)
CIE-LABlab(28.50, 19.01, -43.47)
CIE-LCHlch(28.50, 47.45, 293.62°)
OKLaboklab(39.08% 0.001 -0.1248)
OKLCHoklch(39.08% 0.125 270.4)
XYZxyz(7.1226, 5.6440, 23.6310)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3D87 #87772D
analogous
#2D6A87 #2D3D87 #4A2D87
triadic
#2D3D87 #872D3D #3D872D
tetradic
#2D3D87 #872D6A #87772D #2D874A
square
#2D3D87 #872D6A #87772D #2D874A
split-complementary
#2D3D87 #874A2D #6A872D
monochromatic
#0E142B #1E2859 #2D3D87 #3C52B5 #6376CB

Accessibility & contrast

On white

9.86
#2D3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2D3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3D87
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3D87#FFFFFF#000000##FFFFFF
##2D3D871.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B478A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d3d87;
/* rgb */ color: rgb(45, 61, 135);
/* oklch */ color: oklch(39.1% 0.125 270.4);
Tailwind
colors: {
  custom: {
    50: '#7072aa',
    500: '#2d3d87',
    950: '#000000',
  },
}
SCSS
$custom: #2d3d87;
$custom-light: #7072aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3d87",
  "rgb": {
    "r": 45,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 229.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39076,
    "c": 0.12483,
    "h": 270.4
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#2D3D87
secondary
#B2A35E
accent
#C14EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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