#2F0F4B#2F0F4B

#2F0F4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.105 H 304.2°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2F0F4B
RGBrgb(47, 15, 75)
HSLhsl(272, 67%, 18%)
HSVhsv(272, 80%, 29%)
CMYKcmyk(37.3%, 80%, 0%, 70.6%)
CIE-LABlab(12.31, 28.86, -30.53)
CIE-LCHlch(12.31, 42.01, 313.40°)
OKLaboklab(25.7% 0.059 -0.0869)
OKLCHoklch(25.7% 0.105 304.2)
XYZxyz(2.6128, 1.4540, 6.7982)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0F4B #2B4B0F
analogous
#110F4B #2F0F4B #4B0F49
triadic
#2F0F4B #4B2F0F #0F4B2F
tetradic
#2F0F4B #4B110F #2B4B0F #0F494B
square
#2F0F4B #4B110F #2B4B0F #0F494B
split-complementary
#2F0F4B #494B0F #0F4B11
monochromatic
#10051A #10051A #2F0F4B #4F197E #6F23B1

Accessibility & contrast

On white

16.27
#2F0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F0F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0F4B
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0F4B#FFFFFF#000000##FFFFFF
##2F0F4B1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2A1D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f0f4b;
/* rgb */ color: rgb(47, 15, 75);
/* oklch */ color: oklch(25.7% 0.105 304.2);
Tailwind
colors: {
  custom: {
    50: '#6b517e',
    500: '#2f0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #2f0f4b;
$custom-light: #6b517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0f4b",
  "rgb": {
    "r": 47,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 272,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25696,
    "c": 0.10501,
    "h": 304.2
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#2F0F4B
secondary
#588530
accent
#EA3E8E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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