#2F1D92#2F1D92

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

Color values

HEX#2F1D92
RGBrgb(47, 29, 146)
HSLhsl(249, 67%, 34%)
HSVhsv(249, 80%, 57%)
CMYKcmyk(67.8%, 80.1%, 0%, 42.7%)
CIE-LABlab(22.15, 43.10, -60.67)
CIE-LCHlch(22.15, 74.42, 305.39°)
OKLaboklab(34.81% 0.0273 -0.1752)
OKLCHoklch(34.81% 0.177 278.9)
XYZxyz(6.7983, 3.5578, 27.5170)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D92 #80921D
analogous
#1D4692 #2F1D92 #6A1D92
triadic
#2F1D92 #922F1D #1D922F
tetradic
#2F1D92 #921D46 #80921D #1D926A
square
#2F1D92 #921D46 #80921D #1D926A
split-complementary
#2F1D92 #926A1D #46921D
monochromatic
#0E092C #1F135F #2F1D92 #3F27C5 #634EDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1D92#FFFFFF#000000##FFFFFF
##2F1D921.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)
#003995
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1d92;
/* rgb */ color: rgb(47, 29, 146);
/* oklch */ color: oklch(34.8% 0.177 278.9);
Tailwind
colors: {
  custom: {
    50: '#775db3',
    500: '#2f1d92',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d92;
$custom-light: #775db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d92",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 146
  },
  "hsl": {
    "h": 249.231,
    "s": 66.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34806,
    "c": 0.17732,
    "h": 278.9
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#2F1D92
secondary
#ADBE4C
accent
#EA3ECF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D92

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

Preview Lab → · Contrast checker → · Palette generator →

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