#2F1FA1#2F1FA1

#2F1FA1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.194 H 276.6°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#2F1FA1
RGBrgb(47, 31, 161)
HSLhsl(247, 68%, 38%)
HSVhsv(247, 81%, 63%)
CMYKcmyk(70.8%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.18, 46.77, -66.52)
CIE-LCHlch(24.18, 81.32, 305.11°)
OKLaboklab(36.72% 0.0221 -0.1923)
OKLCHoklch(36.72% 0.194 276.6)
XYZxyz(8.0932, 4.1568, 34.0871)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FA1 #91A11F
analogous
#1F50A1 #2F1FA1 #701FA1
triadic
#2F1FA1 #A12F1F #1FA12F
tetradic
#2F1FA1 #A11F50 #91A11F #1FA170
square
#2F1FA1 #A11F50 #91A11F #1FA170
split-complementary
#2F1FA1 #A1701F #50A11F
monochromatic
#110B3A #20156E #2F1FA1 #3E29D4 #6B5BDF

Accessibility & contrast

On white

11.47
#2F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FA1
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FA1#FFFFFF#000000##FFFFFF
##2F1FA11.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1fa1;
/* rgb */ color: rgb(47, 31, 161);
/* oklch */ color: oklch(36.7% 0.194 276.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fbe',
    500: '#2f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fa1;
$custom-light: #7a5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fa1",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 247.385,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36716,
    "c": 0.19352,
    "h": 276.6
  },
  "luminance": 0.04158
}

Semantic roles & 50–950 ramp

primary
#2F1FA1
secondary
#B6C458
accent
#EB3DD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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