#2F1A7E#2F1A7E

#2F1A7E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.156 H 283.0°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2F1A7E
RGBrgb(47, 26, 126)
HSLhsl(253, 66%, 30%)
HSVhsv(253, 79%, 49%)
CMYKcmyk(62.7%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.43, 38.39, -52.61)
CIE-LCHlch(19.43, 65.13, 306.11°)
OKLaboklab(32.25% 0.0349 -0.1517)
OKLCHoklch(32.25% 0.156 283)
XYZxyz(5.3064, 2.8491, 20.0049)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A7E #697E1A
analogous
#1A377E #2F1A7E #611A7E
triadic
#2F1A7E #7E2F1A #1A7E2F
tetradic
#2F1A7E #7E1A37 #697E1A #1A7E61
square
#2F1A7E #7E1A37 #697E1A #1A7E61
split-complementary
#2F1A7E #7E611A #377E1A
monochromatic
#090519 #1C104B #2F1A7E #4224B1 #5C3CD7

Accessibility & contrast

On white

13.38
#2F1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A7E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A7E#FFFFFF#000000##FFFFFF
##2F1A7E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1a7e;
/* rgb */ color: rgb(47, 26, 126);
/* oklch */ color: oklch(32.3% 0.156 283.0);
Tailwind
colors: {
  custom: {
    50: '#735aa4',
    500: '#2f1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a7e;
$custom-light: #735aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a7e",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 252.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.15566,
    "h": 283
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#2F1A7E
secondary
#9AB242
accent
#E93FC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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