#2F1BA8#2F1BA8

#2F1BA8 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.205 H 276.1°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2F1BA8
RGBrgb(47, 27, 168)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 66%)
CMYKcmyk(72%, 83.9%, 0%, 34.1%)
CIE-LABlab(24.37, 50.73, -70.46)
CIE-LCHlch(24.37, 86.82, 305.75°)
OKLaboklab(37.08% 0.0216 -0.2036)
OKLCHoklch(37.08% 0.205 276.1)
XYZxyz(8.6298, 4.2145, 37.3969)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1BA8 #94A81B
analogous
#1B4DA8 #2F1BA8 #761BA8
triadic
#2F1BA8 #A82F1B #1BA82F
tetradic
#2F1BA8 #A81B4D #94A81B #1BA876
square
#2F1BA8 #A81B4D #94A81B #1BA876
split-complementary
#2F1BA8 #A8761B #4DA81B
monochromatic
#110A3F #201373 #2F1BA8 #3E24DC #6D59E4

Accessibility & contrast

On white

11.39
#2F1BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1BA8
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1BA8#FFFFFF#000000##FFFFFF
##2F1BA81.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1ba8;
/* rgb */ color: rgb(47, 27, 168);
/* oklch */ color: oklch(37.1% 0.205 276.1);
Tailwind
colors: {
  custom: {
    50: '#7c5dc3',
    500: '#2f1ba8',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ba8;
$custom-light: #7c5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ba8",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 248.511,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37081,
    "c": 0.20478,
    "h": 276.1
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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