#2F105C#2F105C

#2F105C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.124 H 295.4°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2F105C
RGBrgb(47, 16, 92)
HSLhsl(264, 70%, 21%)
HSVhsv(264, 83%, 36%)
CMYKcmyk(48.9%, 82.6%, 0%, 63.9%)
CIE-LABlab(14.10, 33.18, -39.19)
CIE-LCHlch(14.10, 51.35, 310.25°)
OKLaboklab(27.46% 0.0534 -0.1123)
OKLCHoklch(27.46% 0.124 295.4)
XYZxyz(3.2888, 1.7475, 10.2872)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F105C #3D5C10
analogous
#10175C #2F105C #55105C
triadic
#2F105C #5C2F10 #105C2F
tetradic
#2F105C #5C1017 #3D5C10 #105C55
square
#2F105C #5C1017 #3D5C10 #105C55
split-complementary
#2F105C #5C5510 #175C10
monochromatic
#0D051A #140728 #2F105C #4A1990 #6422C4

Accessibility & contrast

On white

15.56
#2F105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F105C
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F105C#FFFFFF#000000##FFFFFF
##2F105C1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#222535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f105c;
/* rgb */ color: rgb(47, 16, 92);
/* oklch */ color: oklch(27.5% 0.124 295.4);
Tailwind
colors: {
  custom: {
    50: '#6d528b',
    500: '#2f105c',
    950: '#000000',
  },
}
SCSS
$custom: #2f105c;
$custom-light: #6d528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f105c",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 264.474,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27455,
    "c": 0.12436,
    "h": 295.4
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

primary
#2F105C
secondary
#6D9533
accent
#ED3BA4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F105C

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

Preview Lab → · Contrast checker → · Palette generator →

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