#2F156E#2F156E

#2F156E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.141 H 287.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2F156E
RGBrgb(47, 21, 110)
HSLhsl(258, 68%, 26%)
HSVhsv(258, 81%, 43%)
CMYKcmyk(57.3%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.83, 36.03, -46.61)
CIE-LCHlch(16.83, 58.91, 307.71°)
OKLaboklab(29.92% 0.0434 -0.1341)
OKLCHoklch(29.92% 0.141 287.9)
XYZxyz(4.2541, 2.2662, 14.9621)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F156E #546E15
analogous
#15276E #2F156E #5B156E
triadic
#2F156E #6E2F15 #156E2F
tetradic
#2F156E #6E1527 #546E15 #156E5B
square
#2F156E #6E1527 #546E15 #156E5B
split-complementary
#2F156E #6E5B15 #276E15
monochromatic
#0B051A #190B3B #2F156E #451FA1 #5B29D5

Accessibility & contrast

On white

14.45
#2F156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F156E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F156E#FFFFFF#000000##FFFFFF
##2F156E1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#142E41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f156e;
/* rgb */ color: rgb(47, 21, 110);
/* oklch */ color: oklch(29.9% 0.141 287.9);
Tailwind
colors: {
  custom: {
    50: '#705699',
    500: '#2f156e',
    950: '#000000',
  },
}
SCSS
$custom: #2f156e;
$custom-light: #705699;
$custom-dark: #000000;
JSON
{
  "hex": "#2f156e",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 257.528,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29922,
    "c": 0.14095,
    "h": 287.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#2F156E
secondary
#85A43A
accent
#EB3DB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F156E

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

Preview Lab → · Contrast checker → · Palette generator →

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