#2D397B#2D397B

#2D397B is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.112 H 272.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2D397B
RGBrgb(45, 57, 123)
HSLhsl(231, 46%, 33%)
HSVhsv(231, 63%, 48%)
CMYKcmyk(63.4%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.49, 17.26, -39.21)
CIE-LCHlch(26.49, 42.84, 293.76°)
OKLaboklab(37.28% 0.0041 -0.1123)
OKLCHoklch(37.28% 0.112 272.1)
XYZxyz(6.1193, 4.9137, 19.3610)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D397B #7B6F2D
analogous
#2D607B #2D397B #482D7B
triadic
#2D397B #7B2D39 #397B2D
tetradic
#2D397B #7B2D60 #7B6F2D #2D7B48
square
#2D397B #7B2D60 #7B6F2D #2D7B48
split-complementary
#2D397B #7B482D #607B2D
monochromatic
#0C0F21 #1D244E #2D397B #3D4EA8 #5E6EC4

Accessibility & contrast

On white

10.59
#2D397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D397B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D397B#FFFFFF#000000##FFFFFF
##2D397B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427D
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d397b;
/* rgb */ color: rgb(45, 57, 123);
/* oklch */ color: oklch(37.3% 0.112 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fa2',
    500: '#2d397b',
    950: '#000000',
  },
}
SCSS
$custom: #2d397b;
$custom-light: #6e6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d397b",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 230.769,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37282,
    "c": 0.11241,
    "h": 272.1
  },
  "luminance": 0.04914
}

Semantic roles & 50–950 ramp

primary
#2D397B
secondary
#AB9E59
accent
#C252D6
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#08070F
muted
#7A7A7F

Preview Lab

Preview with #2D397B

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

Preview Lab → · Contrast checker → · Palette generator →

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