#2F1B99#2F1B99

#2F1B99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.187 H 278.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1B99
RGBrgb(47, 27, 153)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(69.3%, 82.4%, 0%, 40%)
CIE-LABlab(22.61, 46.23, -64.23)
CIE-LCHlch(22.61, 79.14, 305.74°)
OKLaboklab(35.36% 0.0262 -0.1855)
OKLCHoklch(35.36% 0.187 278)
XYZxyz(7.3121, 3.6875, 30.4572)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B99 #85991B
analogous
#1B4699 #2F1B99 #6E1B99
triadic
#2F1B99 #992F1B #1B992F
tetradic
#2F1B99 #991B46 #85991B #1B996E
square
#2F1B99 #991B46 #85991B #1B996E
split-complementary
#2F1B99 #996E1B #46991B
monochromatic
#0F0931 #1F1265 #2F1B99 #3F24CD #664FE0

Accessibility & contrast

On white

12.09
#2F1B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F1B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B99
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B99#FFFFFF#000000##FFFFFF
##2F1B991.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#003197
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1b99;
/* rgb */ color: rgb(47, 27, 153);
/* oklch */ color: oklch(35.4% 0.187 278.0);
Tailwind
colors: {
  custom: {
    50: '#785cb8',
    500: '#2f1b99',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b99;
$custom-light: #785cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b99",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 249.524,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35357,
    "c": 0.18739,
    "h": 278
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

primary
#2F1B99
secondary
#B0C24E
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2F1B99

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

Preview Lab → · Contrast checker → · Palette generator →

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