#2F1B95#2F1B95

#2F1B95 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.183 H 278.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1B95
RGBrgb(47, 27, 149)
HSLhsl(250, 69%, 35%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(68.5%, 81.9%, 0%, 41.6%)
CIE-LABlab(22.15, 45.01, -62.53)
CIE-LCHlch(22.15, 77.04, 305.75°)
OKLaboklab(34.91% 0.0274 -0.1806)
OKLCHoklch(34.91% 0.183 278.6)
XYZxyz(6.9873, 3.5575, 28.7464)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B95 #81951B
analogous
#1B4495 #2F1B95 #6C1B95
triadic
#2F1B95 #952F1B #1B952F
tetradic
#2F1B95 #951B44 #81951B #1B956C
square
#2F1B95 #951B44 #81951B #1B956C
split-complementary
#2F1B95 #956C1B #44951B
monochromatic
#0E082D #1F1261 #2F1B95 #3F24C9 #644CDF

Accessibility & contrast

On white

12.27
#2F1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B95
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B95#FFFFFF#000000##FFFFFF
##2F1B951.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1b95;
/* rgb */ color: rgb(47, 27, 149);
/* oklch */ color: oklch(34.9% 0.183 278.6);
Tailwind
colors: {
  custom: {
    50: '#775cb5',
    500: '#2f1b95',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b95;
$custom-light: #775cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b95",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 249.836,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34905,
    "c": 0.18266,
    "h": 278.6
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#2F1B95
secondary
#ADC14B
accent
#EC3CCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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