#2D397E#2D397E

#2D397E is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.117 H 272.1°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2D397E
RGBrgb(45, 57, 126)
HSLhsl(231, 47%, 34%)
HSVhsv(231, 64%, 49%)
CMYKcmyk(64.3%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.71, 18.38, -40.75)
CIE-LCHlch(26.71, 44.70, 294.28°)
OKLaboklab(37.52% 0.0044 -0.1168)
OKLCHoklch(37.52% 0.117 272.1)
XYZxyz(6.3100, 4.9900, 20.3653)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D397E #7E722D
analogous
#2D617E #2D397E #492D7E
triadic
#2D397E #7E2D39 #397E2D
tetradic
#2D397E #7E2D61 #7E722D #2D7E49
square
#2D397E #7E2D61 #7E722D #2D7E49
split-complementary
#2D397E #7E492D #617E2D
monochromatic
#0D1024 #1D2551 #2D397E #3D4DAB #5F6FC6

Accessibility & contrast

On white

10.51
#2D397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D397E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D397E#FFFFFF#000000##FFFFFF
##2D397E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4380
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d397e;
/* rgb */ color: rgb(45, 57, 126);
/* oklch */ color: oklch(37.5% 0.117 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f6fa4',
    500: '#2d397e',
    950: '#000000',
  },
}
SCSS
$custom: #2d397e;
$custom-light: #6f6fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d397e",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 231.111,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37517,
    "c": 0.11693,
    "h": 272.1
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#2D397E
secondary
#ACA05A
accent
#C351D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D397E

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

Preview Lab → · Contrast checker → · Palette generator →

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