#2F156F#2F156F

#2F156F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.142 H 287.6°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2F156F
RGBrgb(47, 21, 111)
HSLhsl(257, 68%, 26%)
HSVhsv(257, 81%, 44%)
CMYKcmyk(57.7%, 81.1%, 0%, 56.5%)
CIE-LABlab(16.93, 36.34, -47.09)
CIE-LCHlch(16.93, 59.48, 307.66°)
OKLaboklab(30.03% 0.0431 -0.1355)
OKLCHoklch(30.03% 0.142 287.6)
XYZxyz(4.3088, 2.2881, 15.2505)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F156F #556F15
analogous
#15286F #2F156F #5C156F
triadic
#2F156F #6F2F15 #156F2F
tetradic
#2F156F #6F1528 #556F15 #156F5C
square
#2F156F #6F1528 #556F15 #156F5C
split-complementary
#2F156F #6F5C15 #286F15
monochromatic
#0B051A #190B3C #2F156F #451FA2 #5B28D6

Accessibility & contrast

On white

14.41
#2F156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F156F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F156F#FFFFFF#000000##FFFFFF
##2F156F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#132F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f156f;
/* rgb */ color: rgb(47, 21, 111);
/* oklch */ color: oklch(30.0% 0.142 287.6);
Tailwind
colors: {
  custom: {
    50: '#705699',
    500: '#2f156f',
    950: '#000000',
  },
}
SCSS
$custom: #2f156f;
$custom-light: #705699;
$custom-dark: #000000;
JSON
{
  "hex": "#2f156f",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 257.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30028,
    "c": 0.14219,
    "h": 287.6
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#2F156F
secondary
#86A53A
accent
#EB3DB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F156F

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

Preview Lab → · Contrast checker → · Palette generator →

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