#2D388B#2D388B

#2D388B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.137 H 272.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2D388B
RGBrgb(45, 56, 139)
HSLhsl(233, 51%, 36%)
HSVhsv(233, 68%, 55%)
CMYKcmyk(67.6%, 59.7%, 0%, 45.5%)
CIE-LABlab(27.43, 23.90, -47.67)
CIE-LCHlch(27.43, 53.33, 296.63°)
OKLaboklab(38.38% 0.0059 -0.1372)
OKLCHoklch(38.38% 0.137 272.4)
XYZxyz(7.1550, 5.2497, 25.0573)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D388B #8B802D
analogous
#2D678B #2D388B #512D8B
triadic
#2D388B #8B2D38 #388B2D
tetradic
#2D388B #8B2D67 #8B802D #2D8B51
square
#2D388B #8B2D67 #8B802D #2D8B51
split-complementary
#2D388B #8B512D #678B2D
monochromatic
#0F132F #1E255D #2D388B #3C4BB9 #6571CD

Accessibility & contrast

On white

10.24
#2D388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D388B
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D388B#FFFFFF#000000##FFFFFF
##2D388B1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d388b;
/* rgb */ color: rgb(45, 56, 139);
/* oklch */ color: oklch(38.4% 0.137 272.4);
Tailwind
colors: {
  custom: {
    50: '#726eae',
    500: '#2d388b',
    950: '#000000',
  },
}
SCSS
$custom: #2d388b;
$custom-light: #726eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d388b",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 232.979,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38379,
    "c": 0.13738,
    "h": 272.4
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

primary
#2D388B
secondary
#B4AA60
accent
#CA4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D388B

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

Preview Lab → · Contrast checker → · Palette generator →

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