#2F154A#2F154A

#2F154A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.095 H 303.0°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2F154A
RGBrgb(47, 21, 74)
HSLhsl(269, 56%, 19%)
HSVhsv(269, 72%, 29%)
CMYKcmyk(36.5%, 71.6%, 0%, 71%)
CIE-LABlab(13.44, 25.21, -28.01)
CIE-LCHlch(13.44, 37.68, 311.99°)
OKLaboklab(26.48% 0.0516 -0.0795)
OKLCHoklch(26.48% 0.095 303)
XYZxyz(2.6762, 1.6351, 6.6518)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F154A #304A15
analogous
#15154A #2F154A #49154A
triadic
#2F154A #4A2F15 #154A2F
tetradic
#2F154A #4A1515 #304A15 #154A49
square
#2F154A #4A1515 #304A15 #154A49
split-complementary
#2F154A #4A4915 #154A15
monochromatic
#0F0718 #11071A #2F154A #4D237A #6C30A9

Accessibility & contrast

On white

15.83
#2F154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F154A
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F154A#FFFFFF#000000##FFFFFF
##2F154A1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#042249
Tritanopia (blue-blind)
#2A212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f154a;
/* rgb */ color: rgb(47, 21, 74);
/* oklch */ color: oklch(26.5% 0.095 303.0);
Tailwind
colors: {
  custom: {
    50: '#6a547d',
    500: '#2f154a',
    950: '#000000',
  },
}
SCSS
$custom: #2f154a;
$custom-light: #6a547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f154a",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 269.434,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26477,
    "c": 0.09478,
    "h": 303
  },
  "luminance": 0.01635
}

Semantic roles & 50–950 ramp

primary
#2F154A
secondary
#5E8239
accent
#DF4995
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #2F154A

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

Preview Lab → · Contrast checker → · Palette generator →

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