#2D154B#2D154B

#2D154B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.096 H 300.3°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2D154B
RGBrgb(45, 21, 75)
HSLhsl(267, 56%, 19%)
HSVhsv(267, 72%, 29%)
CMYKcmyk(40%, 72%, 0%, 70.6%)
CIE-LABlab(13.24, 24.99, -29.03)
CIE-LCHlch(13.24, 38.31, 310.72°)
OKLaboklab(26.3% 0.0483 -0.0826)
OKLCHoklch(26.3% 0.096 300.3)
XYZxyz(2.6200, 1.6022, 6.8265)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D154B #334B15
analogous
#15184B #2D154B #48154B
triadic
#2D154B #4B2D15 #154B2D
tetradic
#2D154B #4B1518 #334B15 #154B48
square
#2D154B #4B1518 #334B15 #154B48
split-complementary
#2D154B #4B4815 #184B15
monochromatic
#0E0718 #10081B #2D154B #4A227B #6630AB

Accessibility & contrast

On white

15.90
#2D154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D154B
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D154B#FFFFFF#000000##FFFFFF
##2D154B1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#26212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d154b;
/* rgb */ color: rgb(45, 21, 75);
/* oklch */ color: oklch(26.3% 0.096 300.3);
Tailwind
colors: {
  custom: {
    50: '#69547e',
    500: '#2d154b',
    950: '#000000',
  },
}
SCSS
$custom: #2d154b;
$custom-light: #69547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d154b",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 266.667,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26297,
    "c": 0.09568,
    "h": 300.3
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#2D154B
secondary
#628339
accent
#E0489C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D154B

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

Preview Lab → · Contrast checker → · Palette generator →

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