#2D398F#2D398F

#2D398F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.142 H 272.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2D398F
RGBrgb(45, 57, 143)
HSLhsl(233, 52%, 37%)
HSVhsv(233, 69%, 56%)
CMYKcmyk(68.5%, 60.1%, 0%, 43.9%)
CIE-LABlab(28.02, 24.71, -49.19)
CIE-LCHlch(28.02, 55.05, 296.68°)
OKLaboklab(38.92% 0.005 -0.1417)
OKLCHoklch(38.92% 0.142 272)
XYZxyz(7.5016, 5.4666, 26.6411)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D398F #8F832D
analogous
#2D6A8F #2D398F #522D8F
triadic
#2D398F #8F2D39 #398F2D
tetradic
#2D398F #8F2D6A #8F832D #2D8F52
square
#2D398F #8F2D6A #8F832D #2D8F52
split-complementary
#2D398F #8F522D #6A8F2D
monochromatic
#101432 #1E2660 #2D398F #3C4CBE #6774CF

Accessibility & contrast

On white

10.03
#2D398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D398F
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D398F#FFFFFF#000000##FFFFFF
##2D398F1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d398f;
/* rgb */ color: rgb(45, 57, 143);
/* oklch */ color: oklch(38.9% 0.142 272.0);
Tailwind
colors: {
  custom: {
    50: '#736fb0',
    500: '#2d398f',
    950: '#000000',
  },
}
SCSS
$custom: #2d398f;
$custom-light: #736fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d398f",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 232.653,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.14177,
    "h": 272
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#2D398F
secondary
#B6AC62
accent
#CA4CDC
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D398F

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

Preview Lab → · Contrast checker → · Palette generator →

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