#2F1CAB#2F1CAB

#2F1CAB is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.207 H 275.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#2F1CAB
RGBrgb(47, 28, 171)
HSLhsl(248, 72%, 39%)
HSVhsv(248, 84%, 67%)
CMYKcmyk(72.5%, 83.6%, 0%, 32.9%)
CIE-LABlab(24.87, 51.18, -71.44)
CIE-LCHlch(24.87, 87.88, 305.62°)
OKLaboklab(37.53% 0.0204 -0.2065)
OKLCHoklch(37.53% 0.207 275.6)
XYZxyz(8.9358, 4.3743, 38.8936)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1CAB #98AB1C
analogous
#1C51AB #2F1CAB #771CAB
triadic
#2F1CAB #AB2F1C #1CAB2F
tetradic
#2F1CAB #AB1C51 #98AB1C #1CAB77
square
#2F1CAB #AB1C51 #98AB1C #1CAB77
split-complementary
#2F1CAB #AB771C #51AB1C
monochromatic
#120B42 #211376 #2F1CAB #4028DC #6F5DE4

Accessibility & contrast

On white

11.20
#2F1CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F1CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1CAB
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1CAB#FFFFFF#000000##FFFFFF
##2F1CAB1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AF
Deuteranopia (green-blind)
#0035A9
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f1cab;
/* rgb */ color: rgb(47, 28, 171);
/* oklch */ color: oklch(37.5% 0.207 275.6);
Tailwind
colors: {
  custom: {
    50: '#7c5ec5',
    500: '#2f1cab',
    950: '#000000',
  },
}
SCSS
$custom: #2f1cab;
$custom-light: #7c5ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1cab",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 247.972,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.20749,
    "h": 275.6
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#2F1CAB
secondary
#BAC95A
accent
#EF39D6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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