#2F1A8C#2F1A8C

#2F1A8C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.173 H 280.2°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2F1A8C
RGBrgb(47, 26, 140)
HSLhsl(251, 69%, 33%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(66.4%, 81.4%, 0%, 45.1%)
CIE-LABlab(20.97, 42.73, -58.90)
CIE-LCHlch(20.97, 72.77, 305.96°)
OKLaboklab(33.78% 0.0307 -0.17)
OKLCHoklch(33.78% 0.173 280.2)
XYZxyz(6.2738, 3.2361, 25.0999)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A8C #778C1A
analogous
#1A3E8C #2F1A8C #681A8C
triadic
#2F1A8C #8C2F1A #1A8C2F
tetradic
#2F1A8C #8C1A3E #778C1A #1A8C68
square
#2F1A8C #8C1A3E #778C1A #1A8C68
split-complementary
#2F1A8C #8C681A #3E8C1A
monochromatic
#0C0725 #1E1058 #2F1A8C #4024C0 #6044DC

Accessibility & contrast

On white

12.75
#2F1A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F1A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A8C
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A8C#FFFFFF#000000##FFFFFF
##2F1A8C1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1a8c;
/* rgb */ color: rgb(47, 26, 140);
/* oklch */ color: oklch(33.8% 0.173 280.2);
Tailwind
colors: {
  custom: {
    50: '#765baf',
    500: '#2f1a8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a8c;
$custom-light: #765baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a8c",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 251.053,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33782,
    "c": 0.17277,
    "h": 280.2
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#2F1A8C
secondary
#A7BE44
accent
#EC3CCB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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