#2D154A#2D154A

#2D154A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.094 H 300.9°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2D154A
RGBrgb(45, 21, 74)
HSLhsl(267, 56%, 19%)
HSVhsv(267, 72%, 29%)
CMYKcmyk(39.2%, 71.6%, 0%, 71%)
CIE-LABlab(13.16, 24.69, -28.48)
CIE-LCHlch(13.16, 37.69, 310.93°)
OKLaboklab(26.21% 0.0484 -0.081)
OKLCHoklch(26.21% 0.094 300.9)
XYZxyz(2.5861, 1.5886, 6.6476)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D154A #324A15
analogous
#15174A #2D154A #47154A
triadic
#2D154A #4A2D15 #154A2D
tetradic
#2D154A #4A1517 #324A15 #154A47
square
#2D154A #4A1517 #324A15 #154A47
split-complementary
#2D154A #4A4715 #174A15
monochromatic
#0E0718 #10071A #2D154A #4A237A #6730A9

Accessibility & contrast

On white

15.94
#2D154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2D154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D154A
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D154A#FFFFFF#000000##FFFFFF
##2D154A1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#27212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d154a;
/* rgb */ color: rgb(45, 21, 74);
/* oklch */ color: oklch(26.2% 0.094 300.9);
Tailwind
colors: {
  custom: {
    50: '#69547d',
    500: '#2d154a',
    950: '#000000',
  },
}
SCSS
$custom: #2d154a;
$custom-light: #69547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d154a",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 267.17,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26211,
    "c": 0.09432,
    "h": 300.9
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#2D154A
secondary
#618239
accent
#DF499B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D154A

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

Preview Lab → · Contrast checker → · Palette generator →

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