#2F1DA1#2F1DA1

#2F1DA1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.195 H 276.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#2F1DA1
RGBrgb(47, 29, 161)
HSLhsl(248, 69%, 37%)
HSVhsv(248, 82%, 63%)
CMYKcmyk(70.8%, 82%, 0%, 36.9%)
CIE-LABlab(23.85, 47.73, -67.07)
CIE-LCHlch(23.85, 82.31, 305.44°)
OKLaboklab(36.49% 0.023 -0.1938)
OKLCHoklch(36.49% 0.195 276.8)
XYZxyz(8.0426, 4.0555, 34.0703)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1DA1 #8FA11D
analogous
#1D4DA1 #2F1DA1 #711DA1
triadic
#2F1DA1 #A12F1D #1DA12F
tetradic
#2F1DA1 #A11D4D #8FA11D #1DA171
square
#2F1DA1 #A11D4D #8FA11D #1DA171
split-complementary
#2F1DA1 #A1711D #4DA11D
monochromatic
#110A39 #20146D #2F1DA1 #3E26D5 #6A58E1

Accessibility & contrast

On white

11.59
#2F1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1DA1
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1DA1#FFFFFF#000000##FFFFFF
##2F1DA11.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1da1;
/* rgb */ color: rgb(47, 29, 161);
/* oklch */ color: oklch(36.5% 0.195 276.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ebe',
    500: '#2f1da1',
    950: '#000000',
  },
}
SCSS
$custom: #2f1da1;
$custom-light: #7a5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1da1",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 248.182,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36488,
    "c": 0.19516,
    "h": 276.8
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#2F1DA1
secondary
#B5C455
accent
#EC3CD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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