#2F1B94#2F1B94

#2F1B94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.181 H 278.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2F1B94
RGBrgb(47, 27, 148)
HSLhsl(250, 69%, 34%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(68.2%, 81.8%, 0%, 42%)
CIE-LABlab(22.04, 44.71, -62.10)
CIE-LCHlch(22.04, 76.52, 305.75°)
OKLaboklab(34.79% 0.0277 -0.1793)
OKLCHoklch(34.79% 0.181 278.8)
XYZxyz(6.9078, 3.5257, 28.3277)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B94 #80941B
analogous
#1B4494 #2F1B94 #6C1B94
triadic
#2F1B94 #942F1B #1B942F
tetradic
#2F1B94 #941B44 #80941B #1B946C
square
#2F1B94 #941B44 #80941B #1B946C
split-complementary
#2F1B94 #946C1B #44941B
monochromatic
#0E082C #1F1260 #2F1B94 #3F24C8 #634BDE

Accessibility & contrast

On white

12.32
#2F1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B94
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B94#FFFFFF#000000##FFFFFF
##2F1B941.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1b94;
/* rgb */ color: rgb(47, 27, 148);
/* oklch */ color: oklch(34.8% 0.181 278.8);
Tailwind
colors: {
  custom: {
    50: '#775cb5',
    500: '#2f1b94',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b94;
$custom-light: #775cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b94",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 249.917,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34792,
    "c": 0.18147,
    "h": 278.8
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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