#2D397D#2D397D

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

Color values

HEX#2D397D
RGBrgb(45, 57, 125)
HSLhsl(231, 47%, 33%)
HSVhsv(231, 64%, 49%)
CMYKcmyk(64%, 54.4%, 0%, 51%)
CIE-LABlab(26.63, 18.01, -40.24)
CIE-LCHlch(26.63, 44.08, 294.11°)
OKLaboklab(37.44% 0.0043 -0.1153)
OKLCHoklch(37.44% 0.115 272.1)
XYZxyz(6.2458, 4.9643, 20.0271)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D397D #7D712D
analogous
#2D617D #2D397D #492D7D
triadic
#2D397D #7D2D39 #397D2D
tetradic
#2D397D #7D2D61 #7D712D #2D7D49
square
#2D397D #7D2D61 #7D712D #2D7D49
split-complementary
#2D397D #7D492D #617D2D
monochromatic
#0D1023 #1D2450 #2D397D #3D4EAA #5F6EC5

Accessibility & contrast

On white

10.54
#2D397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D397D
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D397D#FFFFFF#000000##FFFFFF
##2D397D1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10437F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d397d;
/* rgb */ color: rgb(45, 57, 125);
/* oklch */ color: oklch(37.4% 0.115 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f6fa3',
    500: '#2d397d',
    950: '#000000',
  },
}
SCSS
$custom: #2d397d;
$custom-light: #6f6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d397d",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 231,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37438,
    "c": 0.11543,
    "h": 272.1
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D397D

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

Preview Lab → · Contrast checker → · Palette generator →

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