#2F105B#2F105B

#2F105B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.123 H 295.8°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2F105B
RGBrgb(47, 16, 91)
HSLhsl(265, 70%, 21%)
HSVhsv(265, 82%, 36%)
CMYKcmyk(48.4%, 82.4%, 0%, 64.3%)
CIE-LABlab(14.00, 32.89, -38.68)
CIE-LCHlch(14.00, 50.77, 310.37°)
OKLaboklab(27.35% 0.0537 -0.1108)
OKLCHoklch(27.35% 0.123 295.8)
XYZxyz(3.2454, 1.7302, 10.0585)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F105B #3C5B10
analogous
#10165B #2F105B #54105B
triadic
#2F105B #5B2F10 #105B2F
tetradic
#2F105B #5B1016 #3C5B10 #105B54
square
#2F105B #5B1016 #3C5B10 #105B54
split-complementary
#2F105B #5B5410 #165B10
monochromatic
#0D051A #140727 #2F105B #4A198F #6522C3

Accessibility & contrast

On white

15.60
#2F105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F105B
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F105B#FFFFFF#000000##FFFFFF
##2F105B1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#232435
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f105b;
/* rgb */ color: rgb(47, 16, 91);
/* oklch */ color: oklch(27.4% 0.123 295.8);
Tailwind
colors: {
  custom: {
    50: '#6d528a',
    500: '#2f105b',
    950: '#000000',
  },
}
SCSS
$custom: #2f105b;
$custom-light: #6d528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f105b",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 264.8,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27354,
    "c": 0.12315,
    "h": 295.8
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#2F105B
secondary
#6C9433
accent
#ED3BA3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F105B

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

Preview Lab → · Contrast checker → · Palette generator →

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