#2F106A#2F106A

#2F106A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.141 H 290.1°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2F106A
RGBrgb(47, 16, 106)
HSLhsl(261, 74%, 24%)
HSVhsv(261, 85%, 42%)
CMYKcmyk(55.7%, 84.9%, 0%, 58.4%)
CIE-LABlab(15.57, 37.25, -46.07)
CIE-LCHlch(15.57, 59.24, 308.95°)
OKLaboklab(28.92% 0.0485 -0.1325)
OKLCHoklch(28.92% 0.141 290.1)
XYZxyz(3.9583, 2.0153, 13.8133)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F106A #4B6A10
analogous
#101E6A #2F106A #5C106A
triadic
#2F106A #6A2F10 #106A2F
tetradic
#2F106A #6A101E #4B6A10 #106A5C
square
#2F106A #6A101E #4B6A10 #106A5C
split-complementary
#2F106A #6A5C10 #1E6A10
monochromatic
#0C041B #170835 #2F106A #47189F #5E20D4

Accessibility & contrast

On white

14.97
#2F106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F106A
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F106A#FFFFFF#000000##FFFFFF
##2F106A1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#192B3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f106a;
/* rgb */ color: rgb(47, 16, 106);
/* oklch */ color: oklch(28.9% 0.141 290.1);
Tailwind
colors: {
  custom: {
    50: '#6f5396',
    500: '#2f106a',
    950: '#000000',
  },
}
SCSS
$custom: #2f106a;
$custom-light: #6f5396;
$custom-dark: #000000;
JSON
{
  "hex": "#2f106a",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 260.667,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28918,
    "c": 0.14108,
    "h": 290.1
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#2F106A
secondary
#7CA234
accent
#F037B1
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F106A

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

Preview Lab → · Contrast checker → · Palette generator →

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