#2D319D#2D319D

#2D319D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.171 H 273.5°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2D319D
RGBrgb(45, 49, 157)
HSLhsl(238, 55%, 40%)
HSVhsv(238, 71%, 62%)
CMYKcmyk(71.3%, 68.8%, 0%, 38.4%)
CIE-LABlab(27.26, 35.03, -59.01)
CIE-LCHlch(27.26, 68.62, 300.69°)
OKLaboklab(38.74% 0.0104 -0.1705)
OKLCHoklch(38.74% 0.171 273.5)
XYZxyz(8.2643, 5.1880, 32.4576)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D319D #9D992D
analogous
#2D699D #2D319D #612D9D
triadic
#2D319D #9D2D31 #319D2D
tetradic
#2D319D #9D2D69 #9D992D #2D9D61
square
#2D319D #9D2D69 #9D992D #2D9D61
split-complementary
#2D319D #9D612D #699D2D
monochromatic
#12133E #1F226D #2D319D #3F44C8 #6F72D6

Accessibility & contrast

On white

10.31
#2D319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D319D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D319D#FFFFFF#000000##FFFFFF
##2D319D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d319d;
/* rgb */ color: rgb(45, 49, 157);
/* oklch */ color: oklch(38.7% 0.171 273.5);
Tailwind
colors: {
  custom: {
    50: '#7669bb',
    500: '#2d319d',
    950: '#000000',
  },
}
SCSS
$custom: #2d319d;
$custom-light: #7669bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d319d",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 237.857,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38743,
    "c": 0.17085,
    "h": 273.5
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D319D

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

Preview Lab → · Contrast checker → · Palette generator →

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