#2F167B#2F167B

#2F167B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.156 H 284.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2F167B
RGBrgb(47, 22, 123)
HSLhsl(255, 70%, 28%)
HSVhsv(255, 82%, 48%)
CMYKcmyk(61.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.40, 39.49, -52.40)
CIE-LCHlch(18.40, 65.61, 307.00°)
OKLaboklab(31.44% 0.0385 -0.151)
OKLCHoklch(31.44% 0.156 284.3)
XYZxyz(5.0333, 2.6079, 18.9732)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F167B #627B16
analogous
#16307B #2F167B #61167B
triadic
#2F167B #7B2F16 #167B2F
tetradic
#2F167B #7B1630 #627B16 #167B61
square
#2F167B #7B1630 #627B16 #167B61
split-complementary
#2F167B #7B6116 #307B16
monochromatic
#0A051A #1B0D47 #2F167B #431FAF #5B31DA

Accessibility & contrast

On white

13.80
#2F167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F167B
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F167B#FFFFFF#000000##FFFFFF
##2F167B1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f167b;
/* rgb */ color: rgb(47, 22, 123);
/* oklch */ color: oklch(31.4% 0.156 284.3);
Tailwind
colors: {
  custom: {
    50: '#7257a2',
    500: '#2f167b',
    950: '#000000',
  },
}
SCSS
$custom: #2f167b;
$custom-light: #7257a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f167b",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 254.851,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31438,
    "c": 0.15586,
    "h": 284.3
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2F167B
secondary
#94B03D
accent
#EC3BC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F167B

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

Preview Lab → · Contrast checker → · Palette generator →

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