#2F168C#2F168C

#2F168C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.176 H 280.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2F168C
RGBrgb(47, 22, 140)
HSLhsl(253, 73%, 32%)
HSVhsv(253, 84%, 55%)
CMYKcmyk(66.4%, 84.3%, 0%, 45.1%)
CIE-LABlab(20.33, 44.60, -59.95)
CIE-LCHlch(20.33, 74.72, 306.65°)
OKLaboklab(33.34% 0.0327 -0.173)
OKLCHoklch(33.34% 0.176 280.7)
XYZxyz(6.1913, 3.0711, 25.0724)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F168C #738C16
analogous
#16388C #2F168C #6A168C
triadic
#2F168C #8C2F16 #168C2F
tetradic
#2F168C #8C1638 #738C16 #168C6A
square
#2F168C #8C1638 #738C16 #168C6A
split-complementary
#2F168C #8C6A16 #388C16
monochromatic
#0B0522 #1D0E57 #2F168C #411EC1 #5F3CE0

Accessibility & contrast

On white

13.01
#2F168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F168C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F168C#FFFFFF#000000##FFFFFF
##2F168C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f168c;
/* rgb */ color: rgb(47, 22, 140);
/* oklch */ color: oklch(33.3% 0.176 280.7);
Tailwind
colors: {
  custom: {
    50: '#7659af',
    500: '#2f168c',
    950: '#000000',
  },
}
SCSS
$custom: #2f168c;
$custom-light: #7659af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f168c",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 252.712,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3334,
    "c": 0.17611,
    "h": 280.7
  },
  "luminance": 0.03072
}

Semantic roles & 50–950 ramp

primary
#2F168C
secondary
#A4C03E
accent
#F038C9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F168C

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

Preview Lab → · Contrast checker → · Palette generator →

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