#2D398E#2D398E

#2D398E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.8% C 0.140 H 272.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#2D398E
RGBrgb(45, 57, 142)
HSLhsl(233, 52%, 37%)
HSVhsv(233, 68%, 56%)
CMYKcmyk(68.3%, 59.9%, 0%, 44.3%)
CIE-LABlab(27.94, 24.34, -48.70)
CIE-LCHlch(27.94, 54.45, 296.56°)
OKLaboklab(38.83% 0.005 -0.1403)
OKLCHoklch(38.83% 0.14 272)
XYZxyz(7.4262, 5.4365, 26.2439)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D398E #8E822D
analogous
#2D6A8E #2D398E #522D8E
triadic
#2D398E #8E2D39 #398E2D
tetradic
#2D398E #8E2D6A #8E822D #2D8E52
square
#2D398E #8E2D6A #8E822D #2D8E52
split-complementary
#2D398E #8E522D #6A8E2D
monochromatic
#101431 #1E2660 #2D398E #3C4CBC #6774CF

Accessibility & contrast

On white

10.06
#2D398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D398E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D398E#FFFFFF#000000##FFFFFF
##2D398E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d398e;
/* rgb */ color: rgb(45, 57, 142);
/* oklch */ color: oklch(38.8% 0.140 272.0);
Tailwind
colors: {
  custom: {
    50: '#726fb0',
    500: '#2d398e',
    950: '#000000',
  },
}
SCSS
$custom: #2d398e;
$custom-light: #726fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d398e",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 232.577,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38834,
    "c": 0.14035,
    "h": 272
  },
  "luminance": 0.05437
}

Semantic roles & 50–950 ramp

primary
#2D398E
secondary
#B5AB61
accent
#CA4CDB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2D398E

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

Preview Lab → · Contrast checker → · Palette generator →

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