#2F105F#2F105F

#2F105F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.128 H 294.2°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2F105F
RGBrgb(47, 16, 95)
HSLhsl(264, 71%, 22%)
HSVhsv(264, 83%, 37%)
CMYKcmyk(50.5%, 83.2%, 0%, 62.7%)
CIE-LABlab(14.41, 34.05, -40.70)
CIE-LCHlch(14.41, 53.06, 309.92°)
OKLaboklab(27.76% 0.0524 -0.1167)
OKLCHoklch(27.76% 0.128 294.2)
XYZxyz(3.4226, 1.8010, 10.9916)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F105F #405F10
analogous
#10195F #2F105F #57105F
triadic
#2F105F #5F2F10 #105F2F
tetradic
#2F105F #5F1019 #405F10 #105F57
square
#2F105F #5F1019 #405F10 #105F57
split-complementary
#2F105F #5F5710 #195F10
monochromatic
#0D041A #15072B #2F105F #491993 #6322C8

Accessibility & contrast

On white

15.44
#2F105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F105F
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F105F#FFFFFF#000000##FFFFFF
##2F105F1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#212637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f105f;
/* rgb */ color: rgb(47, 16, 95);
/* oklch */ color: oklch(27.8% 0.128 294.2);
Tailwind
colors: {
  custom: {
    50: '#6e528d',
    500: '#2f105f',
    950: '#000000',
  },
}
SCSS
$custom: #2f105f;
$custom-light: #6e528d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f105f",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 263.544,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2776,
    "c": 0.12797,
    "h": 294.2
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#2F105F
secondary
#709833
accent
#EE3AA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F105F

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

Preview Lab → · Contrast checker → · Palette generator →

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