#2F1BA6#2F1BA6

#2F1BA6 is a dark, highly saturated blue. Relative luminance 0.041; OKLCH L 36.8% C 0.202 H 276.3°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2F1BA6
RGBrgb(47, 27, 166)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(71.7%, 83.7%, 0%, 34.9%)
CIE-LABlab(24.13, 50.13, -69.64)
CIE-LCHlch(24.13, 85.81, 305.75°)
OKLaboklab(36.85% 0.0222 -0.2013)
OKLCHoklch(36.85% 0.202 276.3)
XYZxyz(8.4449, 4.1406, 36.4232)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1BA6 #92A61B
analogous
#1B4CA6 #2F1BA6 #741BA6
triadic
#2F1BA6 #A62F1B #1BA62F
tetradic
#2F1BA6 #A61B4C #92A61B #1BA674
square
#2F1BA6 #A61B4C #92A61B #1BA674
split-complementary
#2F1BA6 #A6741B #4CA61B
monochromatic
#110A3D #201271 #2F1BA6 #3E24DB #6C58E4

Accessibility & contrast

On white

11.49
#2F1BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1BA6
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1BA6#FFFFFF#000000##FFFFFF
##2F1BA61.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1ba6;
/* rgb */ color: rgb(47, 27, 166);
/* oklch */ color: oklch(36.8% 0.202 276.3);
Tailwind
colors: {
  custom: {
    50: '#7b5dc2',
    500: '#2f1ba6',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ba6;
$custom-light: #7b5dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ba6",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 248.633,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.20249,
    "h": 276.3
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#2F1BA6
secondary
#B7C756
accent
#EF39D5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2F1BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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