#2F165C#2F165C

#2F165C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.117 H 293.9°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2F165C
RGBrgb(47, 22, 92)
HSLhsl(261, 61%, 22%)
HSVhsv(261, 76%, 36%)
CMYKcmyk(48.9%, 76.1%, 0%, 63.9%)
CIE-LABlab(15.23, 29.99, -37.35)
CIE-LCHlch(15.23, 47.90, 308.76°)
OKLaboklab(28.25% 0.0474 -0.107)
OKLCHoklch(28.25% 0.117 293.9)
XYZxyz(3.3904, 1.9508, 10.3210)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F165C #435C16
analogous
#16205C #2F165C #52165C
triadic
#2F165C #5C2F16 #165C2F
tetradic
#2F165C #5C1620 #435C16 #165C52
square
#2F165C #5C1620 #435C16 #165C52
split-complementary
#2F165C #5C5216 #205C16
monochromatic
#0D0619 #160A2B #2F165C #48228D #612EBF

Accessibility & contrast

On white

15.11
#2F165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F165C
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F165C#FFFFFF#000000##FFFFFF
##2F165C1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#222837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f165c;
/* rgb */ color: rgb(47, 22, 92);
/* oklch */ color: oklch(28.2% 0.117 293.9);
Tailwind
colors: {
  custom: {
    50: '#6d558b',
    500: '#2f165c',
    950: '#000000',
  },
}
SCSS
$custom: #2f165c;
$custom-light: #6d558b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f165c",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 261.429,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28247,
    "c": 0.11701,
    "h": 293.9
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#2F165C
secondary
#74933B
accent
#E543AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F165C

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

Preview Lab → · Contrast checker → · Palette generator →

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