#2D397C#2D397C

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

Color values

HEX#2D397C
RGBrgb(45, 57, 124)
HSLhsl(231, 47%, 33%)
HSVhsv(231, 64%, 49%)
CMYKcmyk(63.7%, 54%, 0%, 51.4%)
CIE-LABlab(26.56, 17.63, -39.72)
CIE-LCHlch(26.56, 43.46, 293.94°)
OKLaboklab(37.36% 0.0042 -0.1138)
OKLCHoklch(37.36% 0.114 272.1)
XYZxyz(6.1822, 4.9389, 19.6924)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D397C #7C702D
analogous
#2D607C #2D397C #482D7C
triadic
#2D397C #7C2D39 #397C2D
tetradic
#2D397C #7C2D60 #7C702D #2D7C48
square
#2D397C #7C2D60 #7C702D #2D7C48
split-complementary
#2D397C #7C482D #607C2D
monochromatic
#0C1022 #1D244F #2D397C #3D4EA9 #5F6EC5

Accessibility & contrast

On white

10.56
#2D397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D397C
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D397C#FFFFFF#000000##FFFFFF
##2D397C1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427E
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d397c;
/* rgb */ color: rgb(45, 57, 124);
/* oklch */ color: oklch(37.4% 0.114 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fa2',
    500: '#2d397c',
    950: '#000000',
  },
}
SCSS
$custom: #2d397c;
$custom-light: #6e6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d397c",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 230.886,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3736,
    "c": 0.11393,
    "h": 272.1
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#2D397C
secondary
#AB9F5A
accent
#C251D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D397C

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

Preview Lab → · Contrast checker → · Palette generator →

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