#2F154E#2F154E

#2F154E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.100 H 300.7°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2F154E
RGBrgb(47, 21, 78)
HSLhsl(267, 58%, 19%)
HSVhsv(267, 73%, 31%)
CMYKcmyk(39.7%, 73.1%, 0%, 69.4%)
CIE-LABlab(13.77, 26.37, -30.23)
CIE-LCHlch(13.77, 40.12, 311.10°)
OKLaboklab(26.82% 0.0511 -0.086)
OKLCHoklch(26.82% 0.1 300.7)
XYZxyz(2.8153, 1.6907, 7.3843)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F154E #344E15
analogous
#15184E #2F154E #4C154E
triadic
#2F154E #4E2F15 #154E2F
tetradic
#2F154E #4E1518 #344E15 #154E4C
square
#2F154E #4E1518 #344E15 #154E4C
split-complementary
#2F154E #4E4C15 #184E15
monochromatic
#0F0618 #12081E #2F154E #4C227E #692FAE

Accessibility & contrast

On white

15.69
#2F154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F154E
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F154E#FFFFFF#000000##FFFFFF
##2F154E1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#28222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f154e;
/* rgb */ color: rgb(47, 21, 78);
/* oklch */ color: oklch(26.8% 0.100 300.7);
Tailwind
colors: {
  custom: {
    50: '#6b5480',
    500: '#2f154e',
    950: '#000000',
  },
}
SCSS
$custom: #2f154e;
$custom-light: #6b5480;
$custom-dark: #000000;
JSON
{
  "hex": "#2f154e",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 267.368,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26819,
    "c": 0.10008,
    "h": 300.7
  },
  "luminance": 0.01691
}

Semantic roles & 50–950 ramp

primary
#2F154E
secondary
#638639
accent
#E1479B
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F154E

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

Preview Lab → · Contrast checker → · Palette generator →

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