#2D317D#2D317D

#2D317D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.127 H 275.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2D317D
RGBrgb(45, 49, 125)
HSLhsl(237, 47%, 33%)
HSVhsv(237, 64%, 49%)
CMYKcmyk(64%, 60.8%, 0%, 51%)
CIE-LABlab(24.43, 23.48, -43.80)
CIE-LCHlch(24.43, 49.70, 298.20°)
OKLaboklab(35.79% 0.0125 -0.1259)
OKLCHoklch(35.79% 0.127 275.7)
XYZxyz(5.8810, 4.2347, 19.9055)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D317D #7D792D
analogous
#2D597D #2D317D #512D7D
triadic
#2D317D #7D2D31 #317D2D
tetradic
#2D317D #7D2D59 #7D792D #2D7D51
square
#2D317D #7D2D59 #7D792D #2D7D51
split-complementary
#2D317D #7D512D #597D2D
monochromatic
#0D0E23 #1D1F50 #2D317D #3D43AA #5F64C5

Accessibility & contrast

On white

11.37
#2D317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D317D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D317D#FFFFFF#000000##FFFFFF
##2D317D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d317d;
/* rgb */ color: rgb(45, 49, 125);
/* oklch */ color: oklch(35.8% 0.127 275.7);
Tailwind
colors: {
  custom: {
    50: '#6f69a3',
    500: '#2d317d',
    950: '#000000',
  },
}
SCSS
$custom: #2d317d;
$custom-light: #6f69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d317d",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 237,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35794,
    "c": 0.12655,
    "h": 275.7
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D317D

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

Preview Lab → · Contrast checker → · Palette generator →

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