#2F185A#2F185A

#2F185A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.112 H 294.1°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2F185A
RGBrgb(47, 24, 90)
HSLhsl(261, 58%, 22%)
HSVhsv(261, 73%, 35%)
CMYKcmyk(47.8%, 73.3%, 0%, 64.7%)
CIE-LABlab(15.46, 28.21, -35.62)
CIE-LCHlch(15.46, 45.44, 308.38°)
OKLaboklab(28.36% 0.0456 -0.1019)
OKLCHoklch(28.36% 0.112 294.1)
XYZxyz(3.3439, 1.9957, 9.8799)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F185A #435A18
analogous
#18225A #2F185A #50185A
triadic
#2F185A #5A2F18 #185A2F
tetradic
#2F185A #5A1822 #435A18 #185A50
square
#2F185A #5A1822 #435A18 #185A50
split-complementary
#2F185A #5A5018 #225A18
monochromatic
#0D0618 #160B2A #2F185A #48258A #6132BB

Accessibility & contrast

On white

15.01
#2F185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F185A
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F185A#FFFFFF#000000##FFFFFF
##2F185A1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#232836
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f185a;
/* rgb */ color: rgb(47, 24, 90);
/* oklch */ color: oklch(28.4% 0.112 294.1);
Tailwind
colors: {
  custom: {
    50: '#6c5789',
    500: '#2f185a',
    950: '#000000',
  },
}
SCSS
$custom: #2f185a;
$custom-light: #6c5789;
$custom-dark: #000000;
JSON
{
  "hex": "#2f185a",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 260.909,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2836,
    "c": 0.11164,
    "h": 294.1
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#2F185A
secondary
#74913D
accent
#E147AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F185A

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

Preview Lab → · Contrast checker → · Palette generator →

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