#2F105A#2F105A

#2F105A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.122 H 296.3°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2F105A
RGBrgb(47, 16, 90)
HSLhsl(265, 70%, 21%)
HSVhsv(265, 82%, 35%)
CMYKcmyk(47.8%, 82.2%, 0%, 64.7%)
CIE-LABlab(13.90, 32.60, -38.17)
CIE-LCHlch(13.90, 50.20, 310.50°)
OKLaboklab(27.25% 0.054 -0.1093)
OKLCHoklch(27.25% 0.122 296.3)
XYZxyz(3.2026, 1.7130, 9.8328)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F105A #3B5A10
analogous
#10165A #2F105A #54105A
triadic
#2F105A #5A2F10 #105A2F
tetradic
#2F105A #5A1016 #3B5A10 #105A54
square
#2F105A #5A1016 #3B5A10 #105A54
split-complementary
#2F105A #5A5410 #165A10
monochromatic
#0E051A #140726 #2F105A #4A198E #6522C2

Accessibility & contrast

On white

15.64
#2F105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F105A
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F105A#FFFFFF#000000##FFFFFF
##2F105A1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#232434
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f105a;
/* rgb */ color: rgb(47, 16, 90);
/* oklch */ color: oklch(27.3% 0.122 296.3);
Tailwind
colors: {
  custom: {
    50: '#6d5289',
    500: '#2f105a',
    950: '#000000',
  },
}
SCSS
$custom: #2f105a;
$custom-light: #6d5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2f105a",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 265.135,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27254,
    "c": 0.12194,
    "h": 296.3
  },
  "luminance": 0.01713
}

Semantic roles & 50–950 ramp

primary
#2F105A
secondary
#6B9333
accent
#ED3BA2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F105A

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

Preview Lab → · Contrast checker → · Palette generator →

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