#2F186B#2F186B

#2F186B is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 288.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2F186B
RGBrgb(47, 24, 107)
HSLhsl(257, 63%, 26%)
HSVhsv(257, 78%, 42%)
CMYKcmyk(56.1%, 77.6%, 0%, 58%)
CIE-LABlab(17.08, 33.51, -44.24)
CIE-LCHlch(17.08, 55.50, 307.14°)
OKLaboklab(30.01% 0.0418 -0.1272)
OKLCHoklch(30.01% 0.134 288.2)
XYZxyz(4.1520, 2.3189, 14.1359)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F186B #546B18
analogous
#182A6B #2F186B #58186B
triadic
#2F186B #6B2F18 #186B2F
tetradic
#2F186B #6B182A #546B18 #186B58
square
#2F186B #6B182A #546B18 #186B58
split-complementary
#2F186B #6B5818 #2A6B18
monochromatic
#0B0619 #190D39 #2F186B #45239D #5B2ECF

Accessibility & contrast

On white

14.35
#2F186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F186B
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F186B#FFFFFF#000000##FFFFFF
##2F186B1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#172F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f186b;
/* rgb */ color: rgb(47, 24, 107);
/* oklch */ color: oklch(30.0% 0.134 288.2);
Tailwind
colors: {
  custom: {
    50: '#6f5796',
    500: '#2f186b',
    950: '#000000',
  },
}
SCSS
$custom: #2f186b;
$custom-light: #6f5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2f186b",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 256.627,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30006,
    "c": 0.13388,
    "h": 288.2
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2F186B
secondary
#85A13E
accent
#E641B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F186B

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

Preview Lab → · Contrast checker → · Palette generator →

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