#2D397A#2D397A

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

Color values

HEX#2D397A
RGBrgb(45, 57, 122)
HSLhsl(231, 46%, 33%)
HSVhsv(231, 63%, 48%)
CMYKcmyk(63.1%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.42, 16.89, -38.70)
CIE-LCHlch(26.42, 42.22, 293.58°)
OKLaboklab(37.21% 0.004 -0.1108)
OKLCHoklch(37.21% 0.111 272.1)
XYZxyz(6.0570, 4.8888, 19.0330)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D397A #7A6E2D
analogous
#2D607A #2D397A #472D7A
triadic
#2D397A #7A2D39 #397A2D
tetradic
#2D397A #7A2D60 #7A6E2D #2D7A47
square
#2D397A #7A2D60 #7A6E2D #2D7A47
split-complementary
#2D397A #7A472D #607A2D
monochromatic
#0C0F21 #1D244D #2D397A #3D4EA7 #5E6EC4

Accessibility & contrast

On white

10.62
#2D397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D397A
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D397A#FFFFFF#000000##FFFFFF
##2D397A1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#023B79
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d397a;
/* rgb */ color: rgb(45, 57, 122);
/* oklch */ color: oklch(37.2% 0.111 272.1);
Tailwind
colors: {
  custom: {
    50: '#6e6fa1',
    500: '#2d397a',
    950: '#000000',
  },
}
SCSS
$custom: #2d397a;
$custom-light: #6e6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d397a",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 230.649,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37205,
    "c": 0.11089,
    "h": 272.1
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#2D397A
secondary
#AA9D59
accent
#C152D6
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2D397A

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

Preview Lab → · Contrast checker → · Palette generator →

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