#2D317E#2D317E

#2D317E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.128 H 275.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2D317E
RGBrgb(45, 49, 126)
HSLhsl(237, 47%, 34%)
HSVhsv(237, 64%, 49%)
CMYKcmyk(64.3%, 61.1%, 0%, 50.6%)
CIE-LABlab(24.51, 23.85, -44.30)
CIE-LCHlch(24.51, 50.31, 298.30°)
OKLaboklab(35.88% 0.0125 -0.1274)
OKLCHoklch(35.88% 0.128 275.6)
XYZxyz(5.9452, 4.2604, 20.2437)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D317E #7E7A2D
analogous
#2D597E #2D317E #512D7E
triadic
#2D317E #7E2D31 #317E2D
tetradic
#2D317E #7E2D59 #7E7A2D #2D7E51
square
#2D317E #7E2D59 #7E7A2D #2D7E51
split-complementary
#2D317E #7E512D #597E2D
monochromatic
#0D0E24 #1D1F51 #2D317E #3D43AB #5F64C6

Accessibility & contrast

On white

11.34
#2D317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2D317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D317E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D317E#FFFFFF#000000##FFFFFF
##2D317E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d317e;
/* rgb */ color: rgb(45, 49, 126);
/* oklch */ color: oklch(35.9% 0.128 275.6);
Tailwind
colors: {
  custom: {
    50: '#6f69a4',
    500: '#2d317e',
    950: '#000000',
  },
}
SCSS
$custom: #2d317e;
$custom-light: #6f69a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d317e",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 237.037,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3588,
    "c": 0.128,
    "h": 275.6
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#2D317E
secondary
#ACA85A
accent
#D051D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D317E

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

Preview Lab → · Contrast checker → · Palette generator →

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