#2F108D#2F108D

#2F108D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.182 H 281.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2F108D
RGBrgb(47, 16, 141)
HSLhsl(255, 80%, 31%)
HSVhsv(255, 89%, 55%)
CMYKcmyk(66.7%, 88.7%, 0%, 44.7%)
CIE-LABlab(19.63, 47.31, -61.74)
CIE-LCHlch(19.63, 77.78, 307.46°)
OKLaboklab(32.9% 0.0349 -0.1781)
OKLCHoklch(32.9% 0.182 281.1)
XYZxyz(6.1638, 2.8975, 25.4286)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F108D #6E8D10
analogous
#102F8D #2F108D #6D108D
triadic
#2F108D #8D2F10 #108D2F
tetradic
#2F108D #8D102F #6E8D10 #108D6D
square
#2F108D #8D102F #6E8D10 #108D6D
split-complementary
#2F108D #8D6D10 #2F8D10
monochromatic
#0A041F #1D0A56 #2F108D #4116C4 #5D30E7

Accessibility & contrast

On white

13.29
#2F108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F108D
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F108D#FFFFFF#000000##FFFFFF
##2F108D1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f108d;
/* rgb */ color: rgb(47, 16, 141);
/* oklch */ color: oklch(32.9% 0.182 281.1);
Tailwind
colors: {
  custom: {
    50: '#7656b0',
    500: '#2f108d',
    950: '#000000',
  },
}
SCSS
$custom: #2f108d;
$custom-light: #7656b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f108d",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 254.88,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32897,
    "c": 0.18151,
    "h": 281.1
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#2F108D
secondary
#9FC237
accent
#F632C5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2F108D

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

Preview Lab → · Contrast checker → · Palette generator →

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