#2F1C92#2F1C92

#2F1C92 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.178 H 279.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1C92
RGBrgb(47, 28, 146)
HSLhsl(250, 68%, 34%)
HSVhsv(250, 81%, 57%)
CMYKcmyk(67.8%, 80.8%, 0%, 42.7%)
CIE-LABlab(21.98, 43.60, -60.95)
CIE-LCHlch(21.98, 74.94, 305.58°)
OKLaboklab(34.69% 0.0278 -0.176)
OKLCHoklch(34.69% 0.178 279)
XYZxyz(6.7742, 3.5096, 27.5090)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C92 #7F921C
analogous
#1C4492 #2F1C92 #6A1C92
triadic
#2F1C92 #922F1C #1C922F
tetradic
#2F1C92 #921C44 #7F921C #1C926A
square
#2F1C92 #921C44 #7F921C #1C926A
split-complementary
#2F1C92 #926A1C #44921C
monochromatic
#0E082B #1E125F #2F1C92 #4026C5 #634CDD

Accessibility & contrast

On white

12.34
#2F1C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F1C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C92
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C92#FFFFFF#000000##FFFFFF
##2F1C921.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.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: #2f1c92;
/* rgb */ color: rgb(47, 28, 146);
/* oklch */ color: oklch(34.7% 0.178 279.0);
Tailwind
colors: {
  custom: {
    50: '#775cb3',
    500: '#2f1c92',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c92;
$custom-light: #775cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c92",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 146
  },
  "hsl": {
    "h": 249.661,
    "s": 67.816,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.17821,
    "h": 279
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#2F1C92
secondary
#ACBF4B
accent
#EB3DCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1C92

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

Preview Lab → · Contrast checker → · Palette generator →

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