#2F1E93#2F1E93

#2F1E93 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.178 H 278.6°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2F1E93
RGBrgb(47, 30, 147)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 80%, 58%)
CMYKcmyk(68%, 79.6%, 0%, 42.4%)
CIE-LABlab(22.44, 42.90, -60.81)
CIE-LCHlch(22.44, 74.42, 305.20°)
OKLaboklab(35.04% 0.0265 -0.1756)
OKLCHoklch(35.04% 0.178 278.6)
XYZxyz(6.9013, 3.6389, 27.9368)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E93 #82931E
analogous
#1E4893 #2F1E93 #6A1E93
triadic
#2F1E93 #932F1E #1E932F
tetradic
#2F1E93 #931E48 #82931E #1E936A
square
#2F1E93 #931E48 #82931E #1E936A
split-complementary
#2F1E93 #936A1E #48931E
monochromatic
#0E092D #1F1460 #2F1E93 #3F28C6 #6450DB

Accessibility & contrast

On white

12.15
#2F1E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E93
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E93#FFFFFF#000000##FFFFFF
##2F1E931.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1e93;
/* rgb */ color: rgb(47, 30, 147);
/* oklch */ color: oklch(35.0% 0.178 278.6);
Tailwind
colors: {
  custom: {
    50: '#775db4',
    500: '#2f1e93',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e93;
$custom-light: #775db4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e93",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 248.718,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.17762,
    "h": 278.6
  },
  "luminance": 0.03639
}

Semantic roles & 50–950 ramp

primary
#2F1E93
secondary
#AEBE4F
accent
#E93FD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E93

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

Preview Lab → · Contrast checker → · Palette generator →

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