#2F1A7A#2F1A7A

#2F1A7A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.151 H 283.8°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2F1A7A
RGBrgb(47, 26, 122)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 48%)
CMYKcmyk(61.5%, 78.7%, 0%, 52.2%)
CIE-LABlab(19.00, 37.13, -50.76)
CIE-LCHlch(19.00, 62.89, 306.18°)
OKLaboklab(31.83% 0.036 -0.1463)
OKLCHoklch(31.83% 0.151 283.8)
XYZxyz(5.0535, 2.7479, 18.6727)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A7A #657A1A
analogous
#1A357A #2F1A7A #5F1A7A
triadic
#2F1A7A #7A2F1A #1A7A2F
tetradic
#2F1A7A #7A1A35 #657A1A #1A7A5F
square
#2F1A7A #7A1A35 #657A1A #1A7A5F
split-complementary
#2F1A7A #7A5F1A #357A1A
monochromatic
#0A0519 #1C0F48 #2F1A7A #4225AC #5B39D5

Accessibility & contrast

On white

13.55
#2F1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A7A
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A7A#FFFFFF#000000##FFFFFF
##2F1A7A1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1a7a;
/* rgb */ color: rgb(47, 26, 122);
/* oklch */ color: oklch(31.8% 0.151 283.8);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#2f1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a7a;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a7a",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 253.125,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31829,
    "c": 0.15067,
    "h": 283.8
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#2F1A7A
secondary
#97AE41
accent
#E840C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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