#2F167F#2F167F

#2F167F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 283.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2F167F
RGBrgb(47, 22, 127)
HSLhsl(254, 70%, 29%)
HSVhsv(254, 83%, 50%)
CMYKcmyk(63%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.84, 40.70, -54.22)
CIE-LCHlch(18.84, 67.79, 306.90°)
OKLaboklab(31.88% 0.0372 -0.1563)
OKLCHoklch(31.88% 0.161 283.4)
XYZxyz(5.2888, 2.7101, 20.3190)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F167F #667F16
analogous
#16317F #2F167F #64167F
triadic
#2F167F #7F2F16 #167F2F
tetradic
#2F167F #7F1631 #667F16 #167F64
square
#2F167F #7F1631 #667F16 #167F64
split-complementary
#2F167F #7F6416 #317F16
monochromatic
#0A051A #1C0D4B #2F167F #421FB3 #5C34DC

Accessibility & contrast

On white

13.62
#2F167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F167F
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F167F#FFFFFF#000000##FFFFFF
##2F167F1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f167f;
/* rgb */ color: rgb(47, 22, 127);
/* oklch */ color: oklch(31.9% 0.161 283.4);
Tailwind
colors: {
  custom: {
    50: '#7358a5',
    500: '#2f167f',
    950: '#000000',
  },
}
SCSS
$custom: #2f167f;
$custom-light: #7358a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f167f",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 254.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31878,
    "c": 0.16069,
    "h": 283.4
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#2F167F
secondary
#98B43D
accent
#ED3BC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F167F

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

Preview Lab → · Contrast checker → · Palette generator →

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