#2F188C#2F188C

#2F188C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.174 H 280.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2F188C
RGBrgb(47, 24, 140)
HSLhsl(252, 71%, 32%)
HSVhsv(252, 83%, 55%)
CMYKcmyk(66.4%, 82.9%, 0%, 45.1%)
CIE-LABlab(20.64, 43.69, -59.44)
CIE-LCHlch(20.64, 73.77, 306.32°)
OKLaboklab(33.55% 0.0317 -0.1716)
OKLCHoklch(33.55% 0.174 280.5)
XYZxyz(6.2310, 3.1506, 25.0856)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F188C #758C18
analogous
#183B8C #2F188C #69188C
triadic
#2F188C #8C2F18 #188C2F
tetradic
#2F188C #8C183B #758C18 #188C69
square
#2F188C #8C183B #758C18 #188C69
split-complementary
#2F188C #8C6918 #3B8C18
monochromatic
#0C0624 #1D0F58 #2F188C #4121C0 #5F40DE

Accessibility & contrast

On white

12.88
#2F188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F188C
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F188C#FFFFFF#000000##FFFFFF
##2F188C1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f188c;
/* rgb */ color: rgb(47, 24, 140);
/* oklch */ color: oklch(33.6% 0.174 280.5);
Tailwind
colors: {
  custom: {
    50: '#765aaf',
    500: '#2f188c',
    950: '#000000',
  },
}
SCSS
$custom: #2f188c;
$custom-light: #765aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f188c",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 251.897,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33554,
    "c": 0.17448,
    "h": 280.5
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#2F188C
secondary
#A6BF41
accent
#ED3ACA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F188C

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

Preview Lab → · Contrast checker → · Palette generator →

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