#2F1250#2F1250

#2F1250 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.107 H 300.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2F1250
RGBrgb(47, 18, 80)
HSLhsl(268, 63%, 19%)
HSVhsv(268, 78%, 31%)
CMYKcmyk(41.3%, 77.5%, 0%, 68.6%)
CIE-LABlab(13.33, 28.67, -32.32)
CIE-LCHlch(13.33, 43.21, 311.58°)
OKLaboklab(26.56% 0.0545 -0.0922)
OKLCHoklch(26.56% 0.107 300.6)
XYZxyz(2.8362, 1.6161, 7.7504)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1250 #335012
analogous
#121450 #2F1250 #4E1250
triadic
#2F1250 #502F12 #12502F
tetradic
#2F1250 #501214 #335012 #12504E
square
#2F1250 #501214 #335012 #12504E
split-complementary
#2F1250 #504E12 #145012
monochromatic
#0F0619 #12071E #2F1250 #4C1D82 #6A28B4

Accessibility & contrast

On white

15.87
#2F1250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F1250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1250
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1250#FFFFFF#000000##FFFFFF
##2F12501.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#28212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f1250;
/* rgb */ color: rgb(47, 18, 80);
/* oklch */ color: oklch(26.6% 0.107 300.6);
Tailwind
colors: {
  custom: {
    50: '#6b5382',
    500: '#2f1250',
    950: '#000000',
  },
}
SCSS
$custom: #2f1250;
$custom-light: #6b5382;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1250",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 268.065,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26556,
    "c": 0.10706,
    "h": 300.6
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#2F1250
secondary
#628935
accent
#E64199
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1250

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

Preview Lab → · Contrast checker → · Palette generator →

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