#2D397F#2D397F

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

Color values

HEX#2D397F
RGBrgb(45, 57, 127)
HSLhsl(231, 48%, 34%)
HSVhsv(231, 65%, 50%)
CMYKcmyk(64.6%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.78, 18.75, -41.25)
CIE-LCHlch(26.78, 45.32, 294.44°)
OKLaboklab(37.6% 0.0044 -0.1183)
OKLCHoklch(37.6% 0.118 272.1)
XYZxyz(6.3748, 5.0159, 20.7068)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D397F #7F732D
analogous
#2D627F #2D397F #4A2D7F
triadic
#2D397F #7F2D39 #397F2D
tetradic
#2D397F #7F2D62 #7F732D #2D7F4A
square
#2D397F #7F2D62 #7F732D #2D7F4A
split-complementary
#2D397F #7F4A2D #627F2D
monochromatic
#0D1025 #1D2552 #2D397F #3D4DAC #606FC7

Accessibility & contrast

On white

10.48
#2D397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D397F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D397F#FFFFFF#000000##FFFFFF
##2D397F1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d397f;
/* rgb */ color: rgb(45, 57, 127);
/* oklch */ color: oklch(37.6% 0.118 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f6fa5',
    500: '#2d397f',
    950: '#000000',
  },
}
SCSS
$custom: #2d397f;
$custom-light: #6f6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d397f",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 231.22,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37596,
    "c": 0.11843,
    "h": 272.1
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#2D397F
secondary
#ADA15B
accent
#C451D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2D397F

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

Preview Lab → · Contrast checker → · Palette generator →

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