#2F185B#2F185B

#2F185B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.113 H 293.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2F185B
RGBrgb(47, 24, 91)
HSLhsl(261, 58%, 23%)
HSVhsv(261, 74%, 36%)
CMYKcmyk(48.4%, 73.6%, 0%, 64.3%)
CIE-LABlab(15.55, 28.52, -36.15)
CIE-LCHlch(15.55, 46.05, 308.27°)
OKLaboklab(28.45% 0.0454 -0.1034)
OKLCHoklch(28.45% 0.113 293.7)
XYZxyz(3.3867, 2.0128, 10.1056)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F185B #445B18
analogous
#18225B #2F185B #50185B
triadic
#2F185B #5B2F18 #185B2F
tetradic
#2F185B #5B1822 #445B18 #185B50
square
#2F185B #5B1822 #445B18 #185B50
split-complementary
#2F185B #5B5018 #225B18
monochromatic
#0D0618 #160B2B #2F185B #48258B #6132BC

Accessibility & contrast

On white

14.97
#2F185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F185B
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F185B#FFFFFF#000000##FFFFFF
##2F185B1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#222937
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f185b;
/* rgb */ color: rgb(47, 24, 91);
/* oklch */ color: oklch(28.5% 0.113 293.7);
Tailwind
colors: {
  custom: {
    50: '#6c578a',
    500: '#2f185b',
    950: '#000000',
  },
}
SCSS
$custom: #2f185b;
$custom-light: #6c578a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f185b",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 260.597,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28453,
    "c": 0.11298,
    "h": 293.7
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#2F185B
secondary
#75923D
accent
#E146AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F185B

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

Preview Lab → · Contrast checker → · Palette generator →

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