#2F1AB4#2F1AB4

#2F1AB4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.4% C 0.219 H 274.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1AB4
RGBrgb(47, 26, 180)
HSLhsl(248, 75%, 40%)
HSVhsv(248, 86%, 71%)
CMYKcmyk(73.9%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.68, 54.64, -75.50)
CIE-LCHlch(25.68, 93.20, 305.89°)
OKLaboklab(38.39% 0.0183 -0.2182)
OKLCHoklch(38.39% 0.219 274.8)
XYZxyz(9.7772, 4.6374, 43.5510)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1AB4 #9FB41A
analogous
#1A52B4 #2F1AB4 #7C1AB4
triadic
#2F1AB4 #B42F1A #1AB42F
tetradic
#2F1AB4 #B41A52 #9FB41A #1AB47C
square
#2F1AB4 #B41A52 #9FB41A #1AB47C
split-complementary
#2F1AB4 #B47C1A #52B41A
monochromatic
#130B49 #21127F #2F1AB4 #442BE0 #7360E8

Accessibility & contrast

On white

10.89
#2F1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1AB4
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1AB4#FFFFFF#000000##FFFFFF
##2F1AB41.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f1ab4;
/* rgb */ color: rgb(47, 26, 180);
/* oklch */ color: oklch(38.4% 0.219 274.8);
Tailwind
colors: {
  custom: {
    50: '#7e5ecc',
    500: '#2f1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ab4;
$custom-light: #7e5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ab4",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 248.182,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38394,
    "c": 0.21899,
    "h": 274.8
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#2F1AB4
secondary
#BDCC5D
accent
#F136D8
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2F1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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