#2F105E#2F105E

#2F105E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.127 H 294.6°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2F105E
RGBrgb(47, 16, 94)
HSLhsl(264, 71%, 22%)
HSVhsv(264, 83%, 37%)
CMYKcmyk(50%, 83%, 0%, 63.1%)
CIE-LABlab(14.30, 33.76, -40.20)
CIE-LCHlch(14.30, 52.49, 310.02°)
OKLaboklab(27.66% 0.0527 -0.1153)
OKLCHoklch(27.66% 0.127 294.6)
XYZxyz(3.3774, 1.7830, 10.7537)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F105E #3F5E10
analogous
#10185E #2F105E #56105E
triadic
#2F105E #5E2F10 #105E2F
tetradic
#2F105E #5E1018 #3F5E10 #105E56
square
#2F105E #5E1018 #3F5E10 #105E56
split-complementary
#2F105E #5E5610 #185E10
monochromatic
#0D041A #15072A #2F105E #491992 #6322C7

Accessibility & contrast

On white

15.48
#2F105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F105E
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F105E#FFFFFF#000000##FFFFFF
##2F105E1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f105e;
/* rgb */ color: rgb(47, 16, 94);
/* oklch */ color: oklch(27.7% 0.127 294.6);
Tailwind
colors: {
  custom: {
    50: '#6d528c',
    500: '#2f105e',
    950: '#000000',
  },
}
SCSS
$custom: #2f105e;
$custom-light: #6d528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f105e",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 263.846,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27658,
    "c": 0.12676,
    "h": 294.6
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#2F105E
secondary
#6F9733
accent
#EE3AA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F105E

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

Preview Lab → · Contrast checker → · Palette generator →

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