#2F1A63#2F1A63

#2F1A63 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.121 H 290.2°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#2F1A63
RGBrgb(47, 26, 99)
HSLhsl(257, 58%, 25%)
HSVhsv(257, 74%, 39%)
CMYKcmyk(52.5%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.72, 29.84, -39.57)
CIE-LCHlch(16.72, 49.56, 307.02°)
OKLaboklab(29.51% 0.0417 -0.1135)
OKLCHoklch(29.51% 0.121 290.2)
XYZxyz(3.7932, 2.2438, 12.0352)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A63 #4E631A
analogous
#1A2A63 #2F1A63 #541A63
triadic
#2F1A63 #632F1A #1A632F
tetradic
#2F1A63 #631A2A #4E631A #1A6354
square
#2F1A63 #631A2A #4E631A #1A6354
split-complementary
#2F1A63 #63541A #2A631A
monochromatic
#0C0618 #180D33 #2F1A63 #462793 #5D33C4

Accessibility & contrast

On white

14.49
#2F1A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A63
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A63#FFFFFF#000000##FFFFFF
##2F1A631.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#1D2D3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1a63;
/* rgb */ color: rgb(47, 26, 99);
/* oklch */ color: oklch(29.5% 0.121 290.2);
Tailwind
colors: {
  custom: {
    50: '#6d5890',
    500: '#2f1a63',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a63;
$custom-light: #6d5890;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a63",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 257.26,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29512,
    "c": 0.12093,
    "h": 290.2
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#2F1A63
secondary
#7F9940
accent
#E246B5
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2F1A63

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

Preview Lab → · Contrast checker → · Palette generator →

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