#2F185E#2F185E

#2F185E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.117 H 292.5°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#2F185E
RGBrgb(47, 24, 94)
HSLhsl(260, 59%, 23%)
HSVhsv(260, 74%, 37%)
CMYKcmyk(50%, 74.5%, 0%, 63.1%)
CIE-LABlab(15.83, 29.45, -37.71)
CIE-LCHlch(15.83, 47.85, 307.99°)
OKLaboklab(28.73% 0.0448 -0.108)
OKLCHoklch(28.73% 0.117 292.5)
XYZxyz(3.5187, 2.0656, 10.8008)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F185E #475E18
analogous
#18245E #2F185E #52185E
triadic
#2F185E #5E2F18 #185E2F
tetradic
#2F185E #5E1824 #475E18 #185E52
square
#2F185E #5E1824 #475E18 #185E52
split-complementary
#2F185E #5E5218 #245E18
monochromatic
#0C0618 #170C2D #2F185E #47248F #6031C0

Accessibility & contrast

On white

14.86
#2F185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F185E
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F185E#FFFFFF#000000##FFFFFF
##2F185E1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#212A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f185e;
/* rgb */ color: rgb(47, 24, 94);
/* oklch */ color: oklch(28.7% 0.117 292.5);
Tailwind
colors: {
  custom: {
    50: '#6d578c',
    500: '#2f185e',
    950: '#000000',
  },
}
SCSS
$custom: #2f185e;
$custom-light: #6d578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f185e",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 259.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28733,
    "c": 0.11696,
    "h": 292.5
  },
  "luminance": 0.02066
}

Semantic roles & 50–950 ramp

primary
#2F185E
secondary
#78943D
accent
#E345AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F185E

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

Preview Lab → · Contrast checker → · Palette generator →

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