#2D319C#2D319C

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

Color values

HEX#2D319C
RGBrgb(45, 49, 156)
HSLhsl(238, 55%, 39%)
HSVhsv(238, 71%, 61%)
CMYKcmyk(71.2%, 68.6%, 0%, 38.8%)
CIE-LABlab(27.17, 34.67, -58.56)
CIE-LCHlch(27.17, 68.05, 300.63°)
OKLaboklab(38.65% 0.0105 -0.1692)
OKLCHoklch(38.65% 0.17 273.5)
XYZxyz(8.1792, 5.1540, 32.0098)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D319C #9C982D
analogous
#2D699C #2D319C #612D9C
triadic
#2D319C #9C2D31 #319C2D
tetradic
#2D319C #9C2D69 #9C982D #2D9C61
square
#2D319C #9C2D69 #9C982D #2D9C61
split-complementary
#2D319C #9C612D #699C2D
monochromatic
#12133D #1F226D #2D319C #3F44C8 #6E72D5

Accessibility & contrast

On white

10.34
#2D319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D319C
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D319C#FFFFFF#000000##FFFFFF
##2D319C1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d319c;
/* rgb */ color: rgb(45, 49, 156);
/* oklch */ color: oklch(38.6% 0.170 273.5);
Tailwind
colors: {
  custom: {
    50: '#7669ba',
    500: '#2d319c',
    950: '#000000',
  },
}
SCSS
$custom: #2d319c;
$custom-light: #7669ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d319c",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 237.838,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38645,
    "c": 0.16953,
    "h": 273.5
  },
  "luminance": 0.05155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D319C

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

Preview Lab → · Contrast checker → · Palette generator →

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