#2F125C#2F125C

#2F125C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.122 H 295.0°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2F125C
RGBrgb(47, 18, 92)
HSLhsl(264, 67%, 22%)
HSVhsv(264, 80%, 36%)
CMYKcmyk(48.9%, 80.4%, 0%, 63.9%)
CIE-LABlab(14.45, 32.17, -38.61)
CIE-LCHlch(14.45, 50.26, 309.80°)
OKLaboklab(27.7% 0.0515 -0.1106)
OKLCHoklch(27.7% 0.122 295)
XYZxyz(3.3198, 1.8096, 10.2975)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F125C #3F5C12
analogous
#121A5C #2F125C #54125C
triadic
#2F125C #5C2F12 #125C2F
tetradic
#2F125C #5C121A #3F5C12 #125C54
square
#2F125C #5C121A #3F5C12 #125C54
split-complementary
#2F125C #5C5412 #1A5C12
monochromatic
#0D051A #150829 #2F125C #491C8F #6326C2

Accessibility & contrast

On white

15.42
#2F125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F125C
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F125C#FFFFFF#000000##FFFFFF
##2F125C1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#222636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f125c;
/* rgb */ color: rgb(47, 18, 92);
/* oklch */ color: oklch(27.7% 0.122 295.0);
Tailwind
colors: {
  custom: {
    50: '#6d538b',
    500: '#2f125c',
    950: '#000000',
  },
}
SCSS
$custom: #2f125c;
$custom-light: #6d538b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f125c",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 263.514,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27702,
    "c": 0.12204,
    "h": 295
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

primary
#2F125C
secondary
#6F9435
accent
#EA3EA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F125C

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

Preview Lab → · Contrast checker → · Palette generator →

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