#2F1FB4#2F1FB4

#2F1FB4 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.216 H 274.5°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2F1FB4
RGBrgb(47, 31, 180)
HSLhsl(246, 71%, 41%)
HSVhsv(246, 83%, 71%)
CMYKcmyk(73.9%, 82.8%, 0%, 29.4%)
CIE-LABlab(26.39, 52.54, -74.32)
CIE-LCHlch(26.39, 91.02, 305.25°)
OKLaboklab(38.88% 0.0168 -0.2149)
OKLCHoklch(38.88% 0.216 274.5)
XYZxyz(9.8978, 4.8786, 43.5912)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FB4 #A4B41F
analogous
#1F5AB4 #2F1FB4 #7A1FB4
triadic
#2F1FB4 #B42F1F #1FB42F
tetradic
#2F1FB4 #B41F5A #A4B41F #1FB47A
square
#2F1FB4 #B41F5A #A4B41F #1FB47A
split-complementary
#2F1FB4 #B47A1F #5AB41F
monochromatic
#140D4C #211680 #2F1FB4 #4634DC #7668E5

Accessibility & contrast

On white

10.63
#2F1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FB4
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FB4#FFFFFF#000000##FFFFFF
##2F1FB41.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0037B2
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f1fb4;
/* rgb */ color: rgb(47, 31, 180);
/* oklch */ color: oklch(38.9% 0.216 274.5);
Tailwind
colors: {
  custom: {
    50: '#7e60cc',
    500: '#2f1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fb4;
$custom-light: #7e60cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fb4",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 246.443,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38882,
    "c": 0.21557,
    "h": 274.5
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#2F1FB4
secondary
#C0CB64
accent
#ED3ADA
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2F1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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