#2D3F89#2D3F89

#2D3F89 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.125 H 269.6°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#2D3F89
RGBrgb(45, 63, 137)
HSLhsl(228, 51%, 36%)
HSVhsv(228, 67%, 54%)
CMYKcmyk(67.2%, 54%, 0%, 46.3%)
CIE-LABlab(29.21, 18.39, -43.57)
CIE-LCHlch(29.21, 47.29, 292.89°)
OKLaboklab(39.66% -0.0009 -0.1251)
OKLCHoklch(39.66% 0.125 269.6)
XYZxyz(7.3735, 5.9184, 24.4158)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3F89 #89772D
analogous
#2D6D89 #2D3F89 #492D89
triadic
#2D3F89 #892D3F #3F892D
tetradic
#2D3F89 #892D6D #89772D #2D8949
square
#2D3F89 #892D6D #89772D #2D8949
split-complementary
#2D3F89 #89492D #6D892D
monochromatic
#0F152D #1E2A5B #2D3F89 #3C54B7 #6479CC

Accessibility & contrast

On white

9.62
#2D3F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D3F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3F89
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3F89#FFFFFF#000000##FFFFFF
##2D3F891.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10498C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d3f89;
/* rgb */ color: rgb(45, 63, 137);
/* oklch */ color: oklch(39.7% 0.125 269.6);
Tailwind
colors: {
  custom: {
    50: '#7173ac',
    500: '#2d3f89',
    950: '#000000',
  },
}
SCSS
$custom: #2d3f89;
$custom-light: #7173ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3f89",
  "rgb": {
    "r": 45,
    "g": 63,
    "b": 137
  },
  "hsl": {
    "h": 228.261,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.12507,
    "h": 269.6
  },
  "luminance": 0.05919
}

Semantic roles & 50–950 ramp

primary
#2D3F89
secondary
#B3A25F
accent
#BF4EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D3F89

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

Preview Lab → · Contrast checker → · Palette generator →

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