#2F187F#2F187F

#2F187F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.159 H 283.1°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#2F187F
RGBrgb(47, 24, 127)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 50%)
CMYKcmyk(63%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.18, 39.72, -53.66)
CIE-LCHlch(19.18, 66.76, 306.51°)
OKLaboklab(32.11% 0.0359 -0.1547)
OKLCHoklch(32.11% 0.159 283.1)
XYZxyz(5.3285, 2.7895, 20.3322)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F187F #687F18
analogous
#18357F #2F187F #63187F
triadic
#2F187F #7F2F18 #187F2F
tetradic
#2F187F #7F1835 #687F18 #187F63
square
#2F187F #7F1835 #687F18 #187F63
split-complementary
#2F187F #7F6318 #357F18
monochromatic
#0A051A #1C0E4C #2F187F #4222B2 #5C38D9

Accessibility & contrast

On white

13.48
#2F187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F187F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F187F#FFFFFF#000000##FFFFFF
##2F187F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f187f;
/* rgb */ color: rgb(47, 24, 127);
/* oklch */ color: oklch(32.1% 0.159 283.1);
Tailwind
colors: {
  custom: {
    50: '#7359a5',
    500: '#2f187f',
    950: '#000000',
  },
}
SCSS
$custom: #2f187f;
$custom-light: #7359a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f187f",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 253.398,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32112,
    "c": 0.15884,
    "h": 283.1
  },
  "luminance": 0.0279
}

Semantic roles & 50–950 ramp

primary
#2F187F
secondary
#99B33F
accent
#EB3DC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F187F

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

Preview Lab → · Contrast checker → · Palette generator →

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