#2F167A#2F167A

#2F167A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.155 H 284.5°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2F167A
RGBrgb(47, 22, 122)
HSLhsl(255, 69%, 28%)
HSVhsv(255, 82%, 48%)
CMYKcmyk(61.5%, 82%, 0%, 52.2%)
CIE-LABlab(18.29, 39.18, -51.94)
CIE-LCHlch(18.29, 65.06, 307.03°)
OKLaboklab(31.33% 0.0388 -0.1497)
OKLCHoklch(31.33% 0.155 284.5)
XYZxyz(4.9710, 2.5830, 18.6452)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F167A #617A16
analogous
#162F7A #2F167A #61167A
triadic
#2F167A #7A2F16 #167A2F
tetradic
#2F167A #7A162F #617A16 #167A61
square
#2F167A #7A162F #617A16 #167A61
split-complementary
#2F167A #7A6116 #2F7A16
monochromatic
#0A051A #1B0D46 #2F167A #431FAE #5B31DA

Accessibility & contrast

On white

13.85
#2F167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F167A
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F167A#FFFFFF#000000##FFFFFF
##2F167A1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#013448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f167a;
/* rgb */ color: rgb(47, 22, 122);
/* oklch */ color: oklch(31.3% 0.155 284.5);
Tailwind
colors: {
  custom: {
    50: '#7257a2',
    500: '#2f167a',
    950: '#000000',
  },
}
SCSS
$custom: #2f167a;
$custom-light: #7257a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f167a",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 255,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31329,
    "c": 0.15465,
    "h": 284.5
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#2F167A
secondary
#93AF3D
accent
#EC3CC0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F167A

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

Preview Lab → · Contrast checker → · Palette generator →

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