#2D319E#2D319E

#2D319E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.172 H 273.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2D319E
RGBrgb(45, 49, 158)
HSLhsl(238, 56%, 40%)
HSVhsv(238, 72%, 62%)
CMYKcmyk(71.5%, 69%, 0%, 38%)
CIE-LABlab(27.36, 35.38, -59.46)
CIE-LCHlch(27.36, 69.19, 300.75°)
OKLaboklab(38.84% 0.0102 -0.1719)
OKLCHoklch(38.84% 0.172 273.4)
XYZxyz(8.3500, 5.2223, 32.9091)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D319E #9E9A2D
analogous
#2D6A9E #2D319E #612D9E
triadic
#2D319E #9E2D31 #319E2D
tetradic
#2D319E #9E2D6A #9E9A2D #2D9E61
square
#2D319E #9E2D6A #9E9A2D #2D9E61
split-complementary
#2D319E #9E612D #6A9E2D
monochromatic
#12133F #1F226E #2D319E #4045C9 #6F73D6

Accessibility & contrast

On white

10.27
#2D319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D319E
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D319E#FFFFFF#000000##FFFFFF
##2D319E1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d319e;
/* rgb */ color: rgb(45, 49, 158);
/* oklch */ color: oklch(38.8% 0.172 273.4);
Tailwind
colors: {
  custom: {
    50: '#7769bc',
    500: '#2d319e',
    950: '#000000',
  },
}
SCSS
$custom: #2d319e;
$custom-light: #7769bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d319e",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 237.876,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38841,
    "c": 0.17216,
    "h": 273.4
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#2D319E
secondary
#BDBA69
accent
#DA49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D319E

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

Preview Lab → · Contrast checker → · Palette generator →

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