#2F185D#2F185D

#2F185D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.116 H 292.9°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2F185D
RGBrgb(47, 24, 93)
HSLhsl(260, 59%, 23%)
HSVhsv(260, 74%, 36%)
CMYKcmyk(49.5%, 74.2%, 0%, 63.5%)
CIE-LABlab(15.74, 29.14, -37.19)
CIE-LCHlch(15.74, 47.25, 308.08°)
OKLaboklab(28.64% 0.045 -0.1065)
OKLCHoklch(28.64% 0.116 292.9)
XYZxyz(3.4742, 2.0478, 10.5660)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F185D #465D18
analogous
#18235D #2F185D #51185D
triadic
#2F185D #5D2F18 #185D2F
tetradic
#2F185D #5D1823 #465D18 #185D51
square
#2F185D #5D1823 #465D18 #185D51
split-complementary
#2F185D #5D5118 #235D18
monochromatic
#0C0618 #160B2C #2F185D #48258E #6031BE

Accessibility & contrast

On white

14.90
#2F185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F185D
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F185D#FFFFFF#000000##FFFFFF
##2F185D1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#212938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f185d;
/* rgb */ color: rgb(47, 24, 93);
/* oklch */ color: oklch(28.6% 0.116 292.9);
Tailwind
colors: {
  custom: {
    50: '#6d578c',
    500: '#2f185d',
    950: '#000000',
  },
}
SCSS
$custom: #2f185d;
$custom-light: #6d578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f185d",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 260,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28639,
    "c": 0.11564,
    "h": 292.9
  },
  "luminance": 0.02048
}

Semantic roles & 50–950 ramp

primary
#2F185D
secondary
#77933D
accent
#E246AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F185D

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

Preview Lab → · Contrast checker → · Palette generator →

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