#2D3989#2D3989

#2D3989 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.133 H 272.1°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2D3989
RGBrgb(45, 57, 137)
HSLhsl(232, 51%, 36%)
HSVhsv(232, 67%, 54%)
CMYKcmyk(67.2%, 58.4%, 0%, 46.3%)
CIE-LABlab(27.54, 22.48, -46.26)
CIE-LCHlch(27.54, 51.43, 295.92°)
OKLaboklab(38.41% 0.0049 -0.1331)
OKLCHoklch(38.41% 0.133 272.1)
XYZxyz(7.0592, 5.2897, 24.3111)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3989 #897D2D
analogous
#2D6789 #2D3989 #4F2D89
triadic
#2D3989 #892D39 #39892D
tetradic
#2D3989 #892D67 #897D2D #2D894F
square
#2D3989 #892D67 #897D2D #2D894F
split-complementary
#2D3989 #894F2D #67892D
monochromatic
#0F132D #1E265B #2D3989 #3C4CB7 #6472CC

Accessibility & contrast

On white

10.20
#2D3989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2D3989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3989
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3989#FFFFFF#000000##FFFFFF
##2D39891.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3989;
/* rgb */ color: rgb(45, 57, 137);
/* oklch */ color: oklch(38.4% 0.133 272.1);
Tailwind
colors: {
  custom: {
    50: '#716fac',
    500: '#2d3989',
    950: '#000000',
  },
}
SCSS
$custom: #2d3989;
$custom-light: #716fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3989",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 137
  },
  "hsl": {
    "h": 232.174,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.13315,
    "h": 272.1
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#2D3989
secondary
#B3A85F
accent
#C84EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3989

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

Preview Lab → · Contrast checker → · Palette generator →

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