#2F154B#2F154B

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

Color values

HEX#2F154B
RGBrgb(47, 21, 75)
HSLhsl(269, 56%, 19%)
HSVhsv(269, 72%, 29%)
CMYKcmyk(37.3%, 72%, 0%, 70.6%)
CIE-LABlab(13.52, 25.50, -28.57)
CIE-LCHlch(13.52, 38.29, 311.75°)
OKLaboklab(26.56% 0.0515 -0.0811)
OKLCHoklch(26.56% 0.096 302.4)
XYZxyz(2.7102, 1.6487, 6.8307)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F154B #314B15
analogous
#15164B #2F154B #4A154B
triadic
#2F154B #4B2F15 #154B2F
tetradic
#2F154B #4B1516 #314B15 #154B4A
square
#2F154B #4B1516 #314B15 #154B4A
split-complementary
#2F154B #4B4A15 #164B15
monochromatic
#0F0718 #11081B #2F154B #4D227B #6B30AB

Accessibility & contrast

On white

15.79
#2F154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F154B
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F154B#FFFFFF#000000##FFFFFF
##2F154B1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#03224A
Tritanopia (blue-blind)
#29212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f154b;
/* rgb */ color: rgb(47, 21, 75);
/* oklch */ color: oklch(26.6% 0.096 302.4);
Tailwind
colors: {
  custom: {
    50: '#6a547e',
    500: '#2f154b',
    950: '#000000',
  },
}
SCSS
$custom: #2f154b;
$custom-light: #6a547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f154b",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 268.889,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26561,
    "c": 0.09612,
    "h": 302.4
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#2F154B
secondary
#5F8339
accent
#E04897
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F154B

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

Preview Lab → · Contrast checker → · Palette generator →

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