#2F125B#2F125B

#2F125B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.121 H 295.4°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2F125B
RGBrgb(47, 18, 91)
HSLhsl(264, 67%, 21%)
HSVhsv(264, 80%, 36%)
CMYKcmyk(48.4%, 80.2%, 0%, 64.3%)
CIE-LABlab(14.36, 31.88, -38.10)
CIE-LCHlch(14.36, 49.68, 309.92°)
OKLaboklab(27.6% 0.0518 -0.1091)
OKLCHoklch(27.6% 0.121 295.4)
XYZxyz(3.2764, 1.7922, 10.0688)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F125B #3E5B12
analogous
#121A5B #2F125B #54125B
triadic
#2F125B #5B2F12 #125B2F
tetradic
#2F125B #5B121A #3E5B12 #125B54
square
#2F125B #5B121A #3E5B12 #125B54
split-complementary
#2F125B #5B5412 #1A5B12
monochromatic
#0D051A #150828 #2F125B #491C8E #6426C1

Accessibility & contrast

On white

15.46
#2F125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F125B
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F125B#FFFFFF#000000##FFFFFF
##2F125B1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#232535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f125b;
/* rgb */ color: rgb(47, 18, 91);
/* oklch */ color: oklch(27.6% 0.121 295.4);
Tailwind
colors: {
  custom: {
    50: '#6d538a',
    500: '#2f125b',
    950: '#000000',
  },
}
SCSS
$custom: #2f125b;
$custom-light: #6d538a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f125b",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 263.836,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27603,
    "c": 0.12081,
    "h": 295.4
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#2F125B
secondary
#6E9335
accent
#EA3EA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F125B

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

Preview Lab → · Contrast checker → · Palette generator →

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