#2F1C91#2F1C91

#2F1C91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.177 H 279.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2F1C91
RGBrgb(47, 28, 145)
HSLhsl(250, 68%, 34%)
HSVhsv(250, 81%, 57%)
CMYKcmyk(67.6%, 80.7%, 0%, 43.1%)
CIE-LABlab(21.87, 43.29, -60.52)
CIE-LCHlch(21.87, 74.41, 305.58°)
OKLaboklab(34.57% 0.0281 -0.1748)
OKLCHoklch(34.57% 0.177 279.1)
XYZxyz(6.6967, 3.4786, 27.1011)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C91 #7E911C
analogous
#1C4491 #2F1C91 #6A1C91
triadic
#2F1C91 #912F1C #1C912F
tetradic
#2F1C91 #911C44 #7E911C #1C916A
square
#2F1C91 #911C44 #7E911C #1C916A
split-complementary
#2F1C91 #916A1C #44911C
monochromatic
#0E082A #1E125E #2F1C91 #4026C4 #634BDC

Accessibility & contrast

On white

12.38
#2F1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C91
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C91#FFFFFF#000000##FFFFFF
##2F1C911.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1c91;
/* rgb */ color: rgb(47, 28, 145);
/* oklch */ color: oklch(34.6% 0.177 279.1);
Tailwind
colors: {
  custom: {
    50: '#765cb2',
    500: '#2f1c91',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c91;
$custom-light: #765cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c91",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 249.744,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34574,
    "c": 0.17702,
    "h": 279.1
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#2F1C91
secondary
#ACBE4A
accent
#EB3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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