#2F165D#2F165D

#2F165D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.118 H 293.5°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2F165D
RGBrgb(47, 22, 93)
HSLhsl(261, 62%, 23%)
HSVhsv(261, 76%, 36%)
CMYKcmyk(49.5%, 76.3%, 0%, 63.5%)
CIE-LABlab(15.32, 30.30, -37.87)
CIE-LCHlch(15.32, 48.50, 308.66°)
OKLaboklab(28.34% 0.0472 -0.1085)
OKLCHoklch(28.34% 0.118 293.5)
XYZxyz(3.4344, 1.9684, 10.5528)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F165D #445D16
analogous
#16205D #2F165D #53165D
triadic
#2F165D #5D2F16 #165D2F
tetradic
#2F165D #5D1620 #445D16 #165D53
square
#2F165D #5D1620 #445D16 #165D53
split-complementary
#2F165D #5D5316 #205D16
monochromatic
#0D0619 #160A2C #2F165D #48228E #612DC0

Accessibility & contrast

On white

15.07
#2F165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F165D
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F165D#FFFFFF#000000##FFFFFF
##2F165D1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#212838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f165d;
/* rgb */ color: rgb(47, 22, 93);
/* oklch */ color: oklch(28.3% 0.118 293.5);
Tailwind
colors: {
  custom: {
    50: '#6d568c',
    500: '#2f165d',
    950: '#000000',
  },
}
SCSS
$custom: #2f165d;
$custom-light: #6d568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f165d",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 261.127,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28343,
    "c": 0.11831,
    "h": 293.5
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#2F165D
secondary
#75943B
accent
#E543AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F165D

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

Preview Lab → · Contrast checker → · Palette generator →

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