#2F1C94#2F1C94

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

Color values

HEX#2F1C94
RGBrgb(47, 28, 148)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 58%)
CMYKcmyk(68.2%, 81.1%, 0%, 42%)
CIE-LABlab(22.20, 44.22, -61.82)
CIE-LCHlch(22.20, 76.01, 305.58°)
OKLaboklab(34.91% 0.0272 -0.1785)
OKLCHoklch(34.91% 0.181 278.7)
XYZxyz(6.9311, 3.5724, 28.3355)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C94 #81941C
analogous
#1C4594 #2F1C94 #6B1C94
triadic
#2F1C94 #942F1C #1C942F
tetradic
#2F1C94 #941C45 #81941C #1C946B
square
#2F1C94 #941C45 #81941C #1C946B
split-complementary
#2F1C94 #946B1C #45941C
monochromatic
#0E092D #1F1261 #2F1C94 #3F26C7 #644DDD

Accessibility & contrast

On white

12.25
#2F1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C94
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C94#FFFFFF#000000##FFFFFF
##2F1C941.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1c94;
/* rgb */ color: rgb(47, 28, 148);
/* oklch */ color: oklch(34.9% 0.181 278.7);
Tailwind
colors: {
  custom: {
    50: '#775cb5',
    500: '#2f1c94',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c94;
$custom-light: #775cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c94",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 249.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34908,
    "c": 0.18061,
    "h": 278.7
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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