#2D3887#2D3887

#2D3887 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.132 H 272.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#2D3887
RGBrgb(45, 56, 135)
HSLhsl(233, 50%, 35%)
HSVhsv(233, 67%, 53%)
CMYKcmyk(66.7%, 58.5%, 0%, 47.1%)
CIE-LABlab(27.12, 22.41, -45.71)
CIE-LCHlch(27.12, 50.91, 296.12°)
OKLaboklab(38.04% 0.0058 -0.1315)
OKLCHoklch(38.04% 0.132 272.5)
XYZxyz(6.8681, 5.1349, 23.5462)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3887 #877C2D
analogous
#2D6587 #2D3887 #4F2D87
triadic
#2D3887 #872D38 #38872D
tetradic
#2D3887 #872D65 #877C2D #2D874F
square
#2D3887 #872D65 #877C2D #2D874F
split-complementary
#2D3887 #874F2D #65872D
monochromatic
#0E122B #1E2559 #2D3887 #3C4BB5 #6370CB

Accessibility & contrast

On white

10.36
#2D3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3887
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3887#FFFFFF#000000##FFFFFF
##2D38871.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3887;
/* rgb */ color: rgb(45, 56, 135);
/* oklch */ color: oklch(38.0% 0.132 272.5);
Tailwind
colors: {
  custom: {
    50: '#716eab',
    500: '#2d3887',
    950: '#000000',
  },
}
SCSS
$custom: #2d3887;
$custom-light: #716eab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3887",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 232.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38041,
    "c": 0.1316,
    "h": 272.5
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#2D3887
secondary
#B2A75E
accent
#C84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3887

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

Preview Lab → · Contrast checker → · Palette generator →

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