#2F1055#2F1055

#2F1055 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.116 H 298.6°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2F1055
RGBrgb(47, 16, 85)
HSLhsl(267, 68%, 20%)
HSVhsv(267, 81%, 33%)
CMYKcmyk(44.7%, 81.2%, 0%, 66.7%)
CIE-LABlab(13.42, 31.16, -35.59)
CIE-LCHlch(13.42, 47.30, 311.21°)
OKLaboklab(26.76% 0.0554 -0.1017)
OKLCHoklch(26.76% 0.116 298.6)
XYZxyz(2.9969, 1.6308, 8.7494)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1055 #365510
analogous
#101355 #2F1055 #521055
triadic
#2F1055 #552F10 #10552F
tetradic
#2F1055 #551013 #365510 #105552
square
#2F1055 #551013 #365510 #105552
split-complementary
#2F1055 #555210 #135510
monochromatic
#0E051A #130621 #2F1055 #4B1A89 #6823BC

Accessibility & contrast

On white

15.83
#2F1055 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1055 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1055
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1055#FFFFFF#000000##FFFFFF
##2F10551.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#262232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1055;
/* rgb */ color: rgb(47, 16, 85);
/* oklch */ color: oklch(26.8% 0.116 298.6);
Tailwind
colors: {
  custom: {
    50: '#6c5286',
    500: '#2f1055',
    950: '#000000',
  },
}
SCSS
$custom: #2f1055;
$custom-light: #6c5286;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1055",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 85
  },
  "hsl": {
    "h": 266.957,
    "s": 68.317,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26762,
    "c": 0.11587,
    "h": 298.6
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#2F1055
secondary
#658F32
accent
#EB3D9D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1055

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

Preview Lab → · Contrast checker → · Palette generator →

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