#2F167D#2F167D

#2F167D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.158 H 283.8°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2F167D
RGBrgb(47, 22, 125)
HSLhsl(255, 70%, 29%)
HSVhsv(255, 82%, 49%)
CMYKcmyk(62.4%, 82.4%, 0%, 51%)
CIE-LABlab(18.62, 40.09, -53.31)
CIE-LCHlch(18.62, 66.70, 306.95°)
OKLaboklab(31.66% 0.0378 -0.1537)
OKLCHoklch(31.66% 0.158 283.8)
XYZxyz(5.1597, 2.6585, 19.6393)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F167D #647D16
analogous
#16317D #2F167D #63167D
triadic
#2F167D #7D2F16 #167D2F
tetradic
#2F167D #7D1631 #647D16 #167D63
square
#2F167D #7D1631 #647D16 #167D63
split-complementary
#2F167D #7D6316 #317D16
monochromatic
#0A051A #1B0D49 #2F167D #431FB1 #5B32DB

Accessibility & contrast

On white

13.71
#2F167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F167D
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F167D#FFFFFF#000000##FFFFFF
##2F167D1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f167d;
/* rgb */ color: rgb(47, 22, 125);
/* oklch */ color: oklch(31.7% 0.158 283.8);
Tailwind
colors: {
  custom: {
    50: '#7357a4',
    500: '#2f167d',
    950: '#000000',
  },
}
SCSS
$custom: #2f167d;
$custom-light: #7357a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f167d",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 254.563,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31658,
    "c": 0.15828,
    "h": 283.8
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#2F167D
secondary
#96B23D
accent
#ED3BC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F167D

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

Preview Lab → · Contrast checker → · Palette generator →

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