#2F165E#2F165E

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

Color values

HEX#2F165E
RGBrgb(47, 22, 94)
HSLhsl(261, 62%, 23%)
HSVhsv(261, 77%, 37%)
CMYKcmyk(50%, 76.6%, 0%, 63.1%)
CIE-LABlab(15.41, 30.61, -38.38)
CIE-LCHlch(15.41, 49.09, 308.57°)
OKLaboklab(28.44% 0.047 -0.11)
OKLCHoklch(28.44% 0.12 293.1)
XYZxyz(3.4790, 1.9862, 10.7876)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F165E #455E16
analogous
#16215E #2F165E #53165E
triadic
#2F165E #5E2F16 #165E2F
tetradic
#2F165E #5E1621 #455E16 #165E53
square
#2F165E #5E1621 #455E16 #165E53
split-complementary
#2F165E #5E5316 #215E16
monochromatic
#0C0619 #160A2C #2F165E #482290 #612DC1

Accessibility & contrast

On white

15.03
#2F165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F165E
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F165E#FFFFFF#000000##FFFFFF
##2F165E1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#212938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f165e;
/* rgb */ color: rgb(47, 22, 94);
/* oklch */ color: oklch(28.4% 0.120 293.1);
Tailwind
colors: {
  custom: {
    50: '#6d568c',
    500: '#2f165e',
    950: '#000000',
  },
}
SCSS
$custom: #2f165e;
$custom-light: #6d568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f165e",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 260.833,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28439,
    "c": 0.1196,
    "h": 293.1
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#2F165E
secondary
#76953B
accent
#E543AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F165E

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

Preview Lab → · Contrast checker → · Palette generator →

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