#2D399F#2D399F

#2D399F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.164 H 271.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2D399F
RGBrgb(45, 57, 159)
HSLhsl(234, 56%, 40%)
HSVhsv(234, 72%, 62%)
CMYKcmyk(71.7%, 64.2%, 0%, 37.6%)
CIE-LABlab(29.38, 30.61, -56.76)
CIE-LCHlch(29.38, 64.49, 298.34°)
OKLaboklab(40.34% 0.0046 -0.1639)
OKLCHoklch(40.34% 0.164 271.6)
XYZxyz(8.8012, 5.9865, 33.4858)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D399F #9F932D
analogous
#2D729F #2D399F #5A2D9F
triadic
#2D399F #9F2D39 #399F2D
tetradic
#2D399F #9F2D72 #9F932D #2D9F5A
square
#2D399F #9F2D72 #9F932D #2D9F5A
split-complementary
#2D399F #9F5A2D #729F2D
monochromatic
#121740 #20286F #2D399F #404FC9 #707BD6

Accessibility & contrast

On white

9.56
#2D399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2D399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D399F
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D399F#FFFFFF#000000##FFFFFF
##2D399F1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d399f;
/* rgb */ color: rgb(45, 57, 159);
/* oklch */ color: oklch(40.3% 0.164 271.6);
Tailwind
colors: {
  custom: {
    50: '#766fbc',
    500: '#2d399f',
    950: '#000000',
  },
}
SCSS
$custom: #2d399f;
$custom-light: #766fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d399f",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 233.684,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.40341,
    "c": 0.16397,
    "h": 271.6
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

primary
#2D399F
secondary
#BEB56A
accent
#CF49DF
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D399F

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

Preview Lab → · Contrast checker → · Palette generator →

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