#2F105D#2F105D

#2F105D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.126 H 295.0°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2F105D
RGBrgb(47, 16, 93)
HSLhsl(264, 71%, 21%)
HSVhsv(264, 83%, 36%)
CMYKcmyk(49.5%, 82.8%, 0%, 63.5%)
CIE-LABlab(14.20, 33.47, -39.70)
CIE-LCHlch(14.20, 51.92, 310.14°)
OKLaboklab(27.56% 0.053 -0.1138)
OKLCHoklch(27.56% 0.126 295)
XYZxyz(3.3328, 1.7651, 10.5189)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F105D #3E5D10
analogous
#10185D #2F105D #56105D
triadic
#2F105D #5D2F10 #105D2F
tetradic
#2F105D #5D1018 #3E5D10 #105D56
square
#2F105D #5D1018 #3E5D10 #105D56
split-complementary
#2F105D #5D5610 #185D10
monochromatic
#0D041A #150729 #2F105D #491991 #6422C5

Accessibility & contrast

On white

15.52
#2F105D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F105D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F105D
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F105D#FFFFFF#000000##FFFFFF
##2F105D1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#222536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f105d;
/* rgb */ color: rgb(47, 16, 93);
/* oklch */ color: oklch(27.6% 0.126 295.0);
Tailwind
colors: {
  custom: {
    50: '#6d528c',
    500: '#2f105d',
    950: '#000000',
  },
}
SCSS
$custom: #2f105d;
$custom-light: #6d528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f105d",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 93
  },
  "hsl": {
    "h": 264.156,
    "s": 70.642,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27556,
    "c": 0.12556,
    "h": 295
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#2F105D
secondary
#6E9633
accent
#ED3AA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F105D

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

Preview Lab → · Contrast checker → · Palette generator →

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