#2D3985#2D3985

#2D3985 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.1% C 0.127 H 272.1°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2D3985
RGBrgb(45, 57, 133)
HSLhsl(232, 49%, 35%)
HSVhsv(232, 66%, 52%)
CMYKcmyk(66.2%, 57.1%, 0%, 47.8%)
CIE-LABlab(27.23, 20.99, -44.27)
CIE-LCHlch(27.23, 49.00, 295.36°)
OKLaboklab(38.08% 0.0048 -0.1272)
OKLCHoklch(38.08% 0.127 272.1)
XYZxyz(6.7775, 5.1770, 22.8278)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3985 #85792D
analogous
#2D6585 #2D3985 #4D2D85
triadic
#2D3985 #852D39 #39852D
tetradic
#2D3985 #852D65 #85792D #2D854D
square
#2D3985 #852D65 #85792D #2D854D
split-complementary
#2D3985 #854D2D #65852D
monochromatic
#0E122A #1E2557 #2D3985 #3C4DB3 #6271CA

Accessibility & contrast

On white

10.32
#2D3985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D3985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3985
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3985#FFFFFF#000000##FFFFFF
##2D39851.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3985;
/* rgb */ color: rgb(45, 57, 133);
/* oklch */ color: oklch(38.1% 0.127 272.1);
Tailwind
colors: {
  custom: {
    50: '#706fa9',
    500: '#2d3985',
    950: '#000000',
  },
}
SCSS
$custom: #2d3985;
$custom-light: #706fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3985",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 231.818,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3808,
    "c": 0.12732,
    "h": 272.1
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

primary
#2D3985
secondary
#B0A55D
accent
#C64FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3985

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

Preview Lab → · Contrast checker → · Palette generator →

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