#2F165B#2F165B

#2F165B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.116 H 294.3°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2F165B
RGBrgb(47, 22, 91)
HSLhsl(262, 61%, 22%)
HSVhsv(262, 76%, 36%)
CMYKcmyk(48.4%, 75.8%, 0%, 64.3%)
CIE-LABlab(15.13, 29.69, -36.83)
CIE-LCHlch(15.13, 47.31, 308.87°)
OKLaboklab(28.15% 0.0476 -0.1054)
OKLCHoklch(28.15% 0.116 294.3)
XYZxyz(3.3470, 1.9334, 10.0923)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F165B #425B16
analogous
#16205B #2F165B #52165B
triadic
#2F165B #5B2F16 #165B2F
tetradic
#2F165B #5B1620 #425B16 #165B52
square
#2F165B #5B1620 #425B16 #165B52
split-complementary
#2F165B #5B5216 #205B16
monochromatic
#0D0619 #160A2A #2F165B #48228C #622EBE

Accessibility & contrast

On white

15.14
#2F165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F165B
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F165B#FFFFFF#000000##FFFFFF
##2F165B1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#222736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f165b;
/* rgb */ color: rgb(47, 22, 91);
/* oklch */ color: oklch(28.2% 0.116 294.3);
Tailwind
colors: {
  custom: {
    50: '#6c558a',
    500: '#2f165b',
    950: '#000000',
  },
}
SCSS
$custom: #2f165b;
$custom-light: #6c558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f165b",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 261.739,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28152,
    "c": 0.11571,
    "h": 294.3
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#2F165B
secondary
#72923B
accent
#E444AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F165B

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

Preview Lab → · Contrast checker → · Palette generator →

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