#2D319A#2D319A

#2D319A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.167 H 273.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2D319A
RGBrgb(45, 49, 154)
HSLhsl(238, 55%, 39%)
HSVhsv(238, 71%, 60%)
CMYKcmyk(70.8%, 68.2%, 0%, 39.6%)
CIE-LABlab(26.98, 33.96, -57.64)
CIE-LCHlch(26.98, 66.91, 300.51°)
OKLaboklab(38.45% 0.0107 -0.1665)
OKLCHoklch(38.45% 0.167 273.7)
XYZxyz(8.0113, 5.0868, 31.1252)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D319A #9A962D
analogous
#2D689A #2D319A #602D9A
triadic
#2D319A #9A2D31 #319A2D
tetradic
#2D319A #9A2D68 #9A962D #2D9A60
square
#2D319A #9A2D68 #9A962D #2D9A60
split-complementary
#2D319A #9A602D #689A2D
monochromatic
#11133B #1F226B #2D319A #3E43C7 #6D71D4

Accessibility & contrast

On white

10.41
#2D319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D319A
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D319A#FFFFFF#000000##FFFFFF
##2D319A1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d319a;
/* rgb */ color: rgb(45, 49, 154);
/* oklch */ color: oklch(38.5% 0.167 273.7);
Tailwind
colors: {
  custom: {
    50: '#7669b9',
    500: '#2d319a',
    950: '#000000',
  },
}
SCSS
$custom: #2d319a;
$custom-light: #7669b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d319a",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 237.798,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38451,
    "c": 0.16689,
    "h": 273.7
  },
  "luminance": 0.05088
}

Semantic roles & 50–950 ramp

primary
#2D319A
secondary
#BBB867
accent
#D94ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D319A

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

Preview Lab → · Contrast checker → · Palette generator →

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