#2F1A8A#2F1A8A

#2F1A8A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.170 H 280.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2F1A8A
RGBrgb(47, 26, 138)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 54%)
CMYKcmyk(65.9%, 81.2%, 0%, 45.9%)
CIE-LABlab(20.74, 42.12, -58.02)
CIE-LCHlch(20.74, 71.69, 305.98°)
OKLaboklab(33.56% 0.0313 -0.1675)
OKLCHoklch(33.56% 0.17 280.6)
XYZxyz(6.1277, 3.1776, 24.3303)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A8A #758A1A
analogous
#1A3D8A #2F1A8A #671A8A
triadic
#2F1A8A #8A2F1A #1A8A2F
tetradic
#2F1A8A #8A1A3D #758A1A #1A8A67
square
#2F1A8A #8A1A3D #758A1A #1A8A67
split-complementary
#2F1A8A #8A671A #3D8A1A
monochromatic
#0C0723 #1D1057 #2F1A8A #4124BD #5F43DC

Accessibility & contrast

On white

12.84
#2F1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A8A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A8A#FFFFFF#000000##FFFFFF
##2F1A8A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1a8a;
/* rgb */ color: rgb(47, 26, 138);
/* oklch */ color: oklch(33.6% 0.170 280.6);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#2f1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a8a;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a8a",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 251.25,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3356,
    "c": 0.17036,
    "h": 280.6
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#2F1A8A
secondary
#A6BD43
accent
#EB3DCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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