#2F188D#2F188D

#2F188D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.176 H 280.3°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2F188D
RGBrgb(47, 24, 141)
HSLhsl(252, 71%, 32%)
HSVhsv(252, 83%, 55%)
CMYKcmyk(66.7%, 83%, 0%, 44.7%)
CIE-LABlab(20.75, 43.99, -59.88)
CIE-LCHlch(20.75, 74.30, 306.31°)
OKLaboklab(33.67% 0.0314 -0.1728)
OKLCHoklch(33.67% 0.176 280.3)
XYZxyz(6.3051, 3.1802, 25.4757)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F188D #768D18
analogous
#183B8D #2F188D #6A188D
triadic
#2F188D #8D2F18 #188D2F
tetradic
#2F188D #8D183B #768D18 #188D6A
square
#2F188D #8D183B #768D18 #188D6A
split-complementary
#2F188D #8D6A18 #3B8D18
monochromatic
#0C0624 #1E0F59 #2F188D #4021C1 #6041DF

Accessibility & contrast

On white

12.83
#2F188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F188D
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F188D#FFFFFF#000000##FFFFFF
##2F188D1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f188d;
/* rgb */ color: rgb(47, 24, 141);
/* oklch */ color: oklch(33.7% 0.176 280.3);
Tailwind
colors: {
  custom: {
    50: '#765ab0',
    500: '#2f188d',
    950: '#000000',
  },
}
SCSS
$custom: #2f188d;
$custom-light: #765ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f188d",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 251.795,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33667,
    "c": 0.17567,
    "h": 280.3
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#2F188D
secondary
#A7BF42
accent
#EE3ACA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F188D

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

Preview Lab → · Contrast checker → · Palette generator →

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