#2F165A#2F165A

#2F165A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.114 H 294.7°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2F165A
RGBrgb(47, 22, 90)
HSLhsl(262, 61%, 22%)
HSVhsv(262, 76%, 35%)
CMYKcmyk(47.8%, 75.6%, 0%, 64.7%)
CIE-LABlab(15.04, 29.38, -36.31)
CIE-LCHlch(15.04, 46.71, 308.98°)
OKLaboklab(28.06% 0.0478 -0.1039)
OKLCHoklch(28.06% 0.114 294.7)
XYZxyz(3.3042, 1.9163, 9.8667)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F165A #415A16
analogous
#161F5A #2F165A #51165A
triadic
#2F165A #5A2F16 #165A2F
tetradic
#2F165A #5A161F #415A16 #165A51
square
#2F165A #5A161F #415A16 #165A51
split-complementary
#2F165A #5A5116 #1F5A16
monochromatic
#0D0619 #150A29 #2F165A #49228B #622EBC

Accessibility & contrast

On white

15.18
#2F165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F165A
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F165A#FFFFFF#000000##FFFFFF
##2F165A1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#232736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f165a;
/* rgb */ color: rgb(47, 22, 90);
/* oklch */ color: oklch(28.1% 0.114 294.7);
Tailwind
colors: {
  custom: {
    50: '#6c5589',
    500: '#2f165a',
    950: '#000000',
  },
}
SCSS
$custom: #2f165a;
$custom-light: #6c5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2f165a",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 262.059,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28058,
    "c": 0.11441,
    "h": 294.7
  },
  "luminance": 0.01916
}

Semantic roles & 50–950 ramp

primary
#2F165A
secondary
#71913B
accent
#E444A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F165A

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

Preview Lab → · Contrast checker → · Palette generator →

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