#2F1E94#2F1E94

#2F1E94 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.179 H 278.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2F1E94
RGBrgb(47, 30, 148)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 80%, 58%)
CMYKcmyk(68.2%, 79.7%, 0%, 42%)
CIE-LABlab(22.55, 43.22, -61.25)
CIE-LCHlch(22.55, 74.96, 305.21°)
OKLaboklab(35.15% 0.0262 -0.1769)
OKLCHoklch(35.15% 0.179 278.4)
XYZxyz(6.9801, 3.6704, 28.3518)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E94 #83941E
analogous
#1E4894 #2F1E94 #6A1E94
triadic
#2F1E94 #942F1E #1E942F
tetradic
#2F1E94 #941E48 #83941E #1E946A
square
#2F1E94 #941E48 #83941E #1E946A
split-complementary
#2F1E94 #946A1E #48941E
monochromatic
#0F092E #1F1461 #2F1E94 #3F28C7 #6551DC

Accessibility & contrast

On white

12.11
#2F1E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F1E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E94
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E94#FFFFFF#000000##FFFFFF
##2F1E941.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1e94;
/* rgb */ color: rgb(47, 30, 148);
/* oklch */ color: oklch(35.1% 0.179 278.4);
Tailwind
colors: {
  custom: {
    50: '#775db5',
    500: '#2f1e94',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e94;
$custom-light: #775db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e94",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 248.644,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35149,
    "c": 0.17884,
    "h": 278.4
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#2F1E94
secondary
#AFBF4F
accent
#E93FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E94

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

Preview Lab → · Contrast checker → · Palette generator →

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