#2D399C#2D399C

#2D399C is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.160 H 271.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2D399C
RGBrgb(45, 57, 156)
HSLhsl(234, 55%, 39%)
HSVhsv(234, 71%, 61%)
CMYKcmyk(71.2%, 63.5%, 0%, 38.8%)
CIE-LABlab(29.12, 29.51, -55.37)
CIE-LCHlch(29.12, 62.74, 298.06°)
OKLaboklab(40.07% 0.0047 -0.1598)
OKLCHoklch(40.07% 0.16 271.7)
XYZxyz(8.5440, 5.8836, 32.1314)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D399C #9C902D
analogous
#2D709C #2D399C #592D9C
triadic
#2D399C #9C2D39 #399C2D
tetradic
#2D399C #9C2D70 #9C902D #2D9C59
square
#2D399C #9C2D70 #9C902D #2D9C59
split-complementary
#2D399C #9C592D #709C2D
monochromatic
#12163D #1F286D #2D399C #3F4DC8 #6E79D5

Accessibility & contrast

On white

9.65
#2D399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2D399C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D399C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D399C#FFFFFF#000000##FFFFFF
##2D399C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d399c;
/* rgb */ color: rgb(45, 57, 156);
/* oklch */ color: oklch(40.1% 0.160 271.7);
Tailwind
colors: {
  custom: {
    50: '#756fba',
    500: '#2d399c',
    950: '#000000',
  },
}
SCSS
$custom: #2d399c;
$custom-light: #756fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d399c",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 233.514,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40068,
    "c": 0.15989,
    "h": 271.7
  },
  "luminance": 0.05884
}

Semantic roles & 50–950 ramp

primary
#2D399C
secondary
#BCB368
accent
#CE49DF
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2D399C

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

Preview Lab → · Contrast checker → · Palette generator →

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