#2F186E#2F186E

#2F186E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.138 H 287.3°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2F186E
RGBrgb(47, 24, 110)
HSLhsl(256, 64%, 26%)
HSVhsv(256, 78%, 43%)
CMYKcmyk(57.3%, 78.2%, 0%, 56.9%)
CIE-LABlab(17.38, 34.45, -45.70)
CIE-LCHlch(17.38, 57.23, 307.01°)
OKLaboklab(30.31% 0.041 -0.1315)
OKLCHoklch(30.31% 0.138 287.3)
XYZxyz(4.3126, 2.3832, 14.9816)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F186E #576E18
analogous
#182C6E #2F186E #5A186E
triadic
#2F186E #6E2F18 #186E2F
tetradic
#2F186E #6E182C #576E18 #186E5A
square
#2F186E #6E182C #576E18 #186E5A
split-complementary
#2F186E #6E5A18 #2C6E18
monochromatic
#0B0519 #1A0D3C #2F186E #4423A0 #5A2FD2

Accessibility & contrast

On white

14.22
#2F186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F186E
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F186E#FFFFFF#000000##FFFFFF
##2F186E1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#143042
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f186e;
/* rgb */ color: rgb(47, 24, 110);
/* oklch */ color: oklch(30.3% 0.138 287.3);
Tailwind
colors: {
  custom: {
    50: '#705898',
    500: '#2f186e',
    950: '#000000',
  },
}
SCSS
$custom: #2f186e;
$custom-light: #705898;
$custom-dark: #000000;
JSON
{
  "hex": "#2f186e",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 256.047,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30312,
    "c": 0.1377,
    "h": 287.3
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#2F186E
secondary
#88A43E
accent
#E741BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F186E

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

Preview Lab → · Contrast checker → · Palette generator →

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