#2D317C#2D317C

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

Color values

HEX#2D317C
RGBrgb(45, 49, 124)
HSLhsl(237, 47%, 33%)
HSVhsv(237, 64%, 49%)
CMYKcmyk(63.7%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.35, 23.12, -43.30)
CIE-LCHlch(24.35, 49.08, 298.10°)
OKLaboklab(35.71% 0.0125 -0.1245)
OKLCHoklch(35.71% 0.125 275.7)
XYZxyz(5.8174, 4.2093, 19.5708)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D317C #7C782D
analogous
#2D587C #2D317C #502D7C
triadic
#2D317C #7C2D31 #317C2D
tetradic
#2D317C #7C2D58 #7C782D #2D7C50
square
#2D317C #7C2D58 #7C782D #2D7C50
split-complementary
#2D317C #7C502D #587C2D
monochromatic
#0C0E22 #1D1F4F #2D317C #3D43A9 #5F64C5

Accessibility & contrast

On white

11.40
#2D317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D317C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D317C#FFFFFF#000000##FFFFFF
##2D317C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d317c;
/* rgb */ color: rgb(45, 49, 124);
/* oklch */ color: oklch(35.7% 0.125 275.7);
Tailwind
colors: {
  custom: {
    50: '#6f69a3',
    500: '#2d317c',
    950: '#000000',
  },
}
SCSS
$custom: #2d317c;
$custom-light: #6f69a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d317c",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 236.962,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35709,
    "c": 0.12509,
    "h": 275.7
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#2D317C
secondary
#ABA75A
accent
#D051D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D317C

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

Preview Lab → · Contrast checker → · Palette generator →

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