#2F1BA7#2F1BA7

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

Color values

HEX#2F1BA7
RGBrgb(47, 27, 167)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(71.9%, 83.8%, 0%, 34.5%)
CIE-LABlab(24.25, 50.43, -70.05)
CIE-LCHlch(24.25, 86.32, 305.75°)
OKLaboklab(36.96% 0.0219 -0.2024)
OKLCHoklch(36.96% 0.204 276.2)
XYZxyz(8.5370, 4.1774, 36.9081)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1BA7 #93A71B
analogous
#1B4DA7 #2F1BA7 #751BA7
triadic
#2F1BA7 #A72F1B #1BA72F
tetradic
#2F1BA7 #A71B4D #93A71B #1BA775
square
#2F1BA7 #A71B4D #93A71B #1BA775
split-complementary
#2F1BA7 #A7751B #4DA71B
monochromatic
#110A3E #201272 #2F1BA7 #3E24DC #6C58E4

Accessibility & contrast

On white

11.44
#2F1BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1BA7
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1BA7#FFFFFF#000000##FFFFFF
##2F1BA71.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0033A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1ba7;
/* rgb */ color: rgb(47, 27, 167);
/* oklch */ color: oklch(37.0% 0.204 276.2);
Tailwind
colors: {
  custom: {
    50: '#7b5dc3',
    500: '#2f1ba7',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ba7;
$custom-light: #7b5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ba7",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 248.571,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36965,
    "c": 0.20363,
    "h": 276.2
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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