#2D3889#2D3889

#2D3889 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.135 H 272.5°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2D3889
RGBrgb(45, 56, 137)
HSLhsl(233, 51%, 36%)
HSVhsv(233, 67%, 54%)
CMYKcmyk(67.2%, 59.1%, 0%, 46.3%)
CIE-LABlab(27.27, 23.16, -46.69)
CIE-LCHlch(27.27, 52.12, 296.38°)
OKLaboklab(38.21% 0.0059 -0.1344)
OKLCHoklch(38.21% 0.135 272.5)
XYZxyz(7.0102, 5.1918, 24.2947)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3889 #897E2D
analogous
#2D6689 #2D3889 #502D89
triadic
#2D3889 #892D38 #38892D
tetradic
#2D3889 #892D66 #897E2D #2D8950
square
#2D3889 #892D66 #897E2D #2D8950
split-complementary
#2D3889 #89502D #66892D
monochromatic
#0F122D #1E255B #2D3889 #3C4BB7 #6471CC

Accessibility & contrast

On white

10.30
#2D3889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D3889
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3889#FFFFFF#000000##FFFFFF
##2D38891.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d3889;
/* rgb */ color: rgb(45, 56, 137);
/* oklch */ color: oklch(38.2% 0.135 272.5);
Tailwind
colors: {
  custom: {
    50: '#716eac',
    500: '#2d3889',
    950: '#000000',
  },
}
SCSS
$custom: #2d3889;
$custom-light: #716eac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3889",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 137
  },
  "hsl": {
    "h": 232.826,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3821,
    "c": 0.1345,
    "h": 272.5
  },
  "luminance": 0.05192
}

Semantic roles & 50–950 ramp

primary
#2D3889
secondary
#B3A95F
accent
#C94EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3889

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

Preview Lab → · Contrast checker → · Palette generator →

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