#2F188F#2F188F

#2F188F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.178 H 279.9°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#2F188F
RGBrgb(47, 24, 143)
HSLhsl(252, 71%, 33%)
HSVhsv(252, 83%, 56%)
CMYKcmyk(67.1%, 83.2%, 0%, 43.9%)
CIE-LABlab(20.98, 44.60, -60.74)
CIE-LCHlch(20.98, 75.35, 306.29°)
OKLaboklab(33.89% 0.0308 -0.1754)
OKLCHoklch(33.89% 0.178 279.9)
XYZxyz(6.4553, 3.2403, 26.2665)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F188F #788F18
analogous
#183C8F #2F188F #6B188F
triadic
#2F188F #8F2F18 #188F2F
tetradic
#2F188F #8F183C #788F18 #188F6B
square
#2F188F #8F183C #788F18 #188F6B
split-complementary
#2F188F #8F6B18 #3C8F18
monochromatic
#0D0626 #1E0F5B #2F188F #4021C3 #6042DF

Accessibility & contrast

On white

12.74
#2F188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F188F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F188F#FFFFFF#000000##FFFFFF
##2F188F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f188f;
/* rgb */ color: rgb(47, 24, 143);
/* oklch */ color: oklch(33.9% 0.178 279.9);
Tailwind
colors: {
  custom: {
    50: '#765ab1',
    500: '#2f188f',
    950: '#000000',
  },
}
SCSS
$custom: #2f188f;
$custom-light: #765ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f188f",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 251.597,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33894,
    "c": 0.17804,
    "h": 279.9
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#2F188F
secondary
#A8C043
accent
#EE3ACB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F188F

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

Preview Lab → · Contrast checker → · Palette generator →

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