#2F1CA6#2F1CA6

#2F1CA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.202 H 276.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1CA6
RGBrgb(47, 28, 166)
HSLhsl(248, 71%, 38%)
HSVhsv(248, 83%, 65%)
CMYKcmyk(71.7%, 83.1%, 0%, 34.9%)
CIE-LABlab(24.28, 49.69, -69.40)
CIE-LCHlch(24.28, 85.35, 305.61°)
OKLaboklab(36.95% 0.0219 -0.2006)
OKLCHoklch(36.95% 0.202 276.2)
XYZxyz(8.4682, 4.1872, 36.4309)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1CA6 #93A61C
analogous
#1C4EA6 #2F1CA6 #741CA6
triadic
#2F1CA6 #A62F1C #1CA62F
tetradic
#2F1CA6 #A61C4E #93A61C #1CA674
square
#2F1CA6 #A61C4E #93A61C #1CA674
split-complementary
#2F1CA6 #A6741C #4EA61C
monochromatic
#110A3D #201372 #2F1CA6 #3E25DA #6C59E3

Accessibility & contrast

On white

11.43
#2F1CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F1CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1CA6
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1CA6#FFFFFF#000000##FFFFFF
##2F1CA61.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1ca6;
/* rgb */ color: rgb(47, 28, 166);
/* oklch */ color: oklch(37.0% 0.202 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b5dc2',
    500: '#2f1ca6',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ca6;
$custom-light: #7b5dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ca6",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 248.261,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36952,
    "c": 0.20175,
    "h": 276.2
  },
  "luminance": 0.04188
}

Semantic roles & 50–950 ramp

primary
#2F1CA6
secondary
#B7C757
accent
#EE3AD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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