#2F156D#2F156D

#2F156D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.140 H 288.2°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#2F156D
RGBrgb(47, 21, 109)
HSLhsl(258, 68%, 25%)
HSVhsv(258, 81%, 43%)
CMYKcmyk(56.9%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.72, 35.73, -46.13)
CIE-LCHlch(16.72, 58.35, 307.76°)
OKLaboklab(29.82% 0.0437 -0.1327)
OKLCHoklch(29.82% 0.14 288.2)
XYZxyz(4.2000, 2.2446, 14.6770)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F156D #536D15
analogous
#15276D #2F156D #5B156D
triadic
#2F156D #6D2F15 #156D2F
tetradic
#2F156D #6D1527 #536D15 #156D5B
square
#2F156D #6D1527 #536D15 #156D5B
split-complementary
#2F156D #6D5B15 #276D15
monochromatic
#0B051A #190B3A #2F156D #451FA0 #5B29D4

Accessibility & contrast

On white

14.49
#2F156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F156D
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F156D#FFFFFF#000000##FFFFFF
##2F156D1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#162E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f156d;
/* rgb */ color: rgb(47, 21, 109);
/* oklch */ color: oklch(29.8% 0.140 288.2);
Tailwind
colors: {
  custom: {
    50: '#705698',
    500: '#2f156d',
    950: '#000000',
  },
}
SCSS
$custom: #2f156d;
$custom-light: #705698;
$custom-dark: #000000;
JSON
{
  "hex": "#2f156d",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 257.727,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29817,
    "c": 0.13972,
    "h": 288.2
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#2F156D
secondary
#84A33A
accent
#EB3DB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F156D

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

Preview Lab → · Contrast checker → · Palette generator →

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