#2D154F#2D154F

#2D154F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.101 H 298.2°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#2D154F
RGBrgb(45, 21, 79)
HSLhsl(265, 58%, 20%)
HSVhsv(265, 73%, 31%)
CMYKcmyk(43%, 73.4%, 0%, 69%)
CIE-LABlab(13.58, 26.19, -31.23)
CIE-LCHlch(13.58, 40.76, 309.98°)
OKLaboklab(26.65% 0.0478 -0.0891)
OKLCHoklch(26.65% 0.101 298.2)
XYZxyz(2.7613, 1.6587, 7.5703)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D154F #374F15
analogous
#151A4F #2D154F #4A154F
triadic
#2D154F #4F2D15 #154F2D
tetradic
#2D154F #4F151A #374F15 #154F4A
square
#2D154F #4F151A #374F15 #154F4A
split-complementary
#2D154F #4F4A15 #1A4F15
monochromatic
#0E0618 #11081F #2D154F #49227F #642FB0

Accessibility & contrast

On white

15.77
#2D154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D154F
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D154F#FFFFFF#000000##FFFFFF
##2D154F1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#252330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d154f;
/* rgb */ color: rgb(45, 21, 79);
/* oklch */ color: oklch(26.6% 0.101 298.2);
Tailwind
colors: {
  custom: {
    50: '#695481',
    500: '#2d154f',
    950: '#000000',
  },
}
SCSS
$custom: #2d154f;
$custom-light: #695481;
$custom-dark: #000000;
JSON
{
  "hex": "#2d154f",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 264.828,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26649,
    "c": 0.10106,
    "h": 298.2
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#2D154F
secondary
#678739
accent
#E147A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2D154F

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

Preview Lab → · Contrast checker → · Palette generator →

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