#2F1E95#2F1E95

#2F1E95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.180 H 278.3°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2F1E95
RGBrgb(47, 30, 149)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 80%, 58%)
CMYKcmyk(68.5%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.66, 43.53, -61.68)
CIE-LCHlch(22.66, 75.50, 305.21°)
OKLaboklab(35.26% 0.0259 -0.1782)
OKLCHoklch(35.26% 0.18 278.3)
XYZxyz(7.0596, 3.7022, 28.7705)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E95 #84951E
analogous
#1E4995 #2F1E95 #6A1E95
triadic
#2F1E95 #952F1E #1E952F
tetradic
#2F1E95 #951E49 #84951E #1E956A
square
#2F1E95 #951E49 #84951E #1E956A
split-complementary
#2F1E95 #956A1E #49951E
monochromatic
#0F092F #1F1462 #2F1E95 #3F28C8 #6551DC

Accessibility & contrast

On white

12.06
#2F1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F1E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E95
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E95#FFFFFF#000000##FFFFFF
##2F1E951.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1e95;
/* rgb */ color: rgb(47, 30, 149);
/* oklch */ color: oklch(35.3% 0.180 278.3);
Tailwind
colors: {
  custom: {
    50: '#775db5',
    500: '#2f1e95',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e95;
$custom-light: #775db5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e95",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 248.571,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3526,
    "c": 0.18005,
    "h": 278.3
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#2F1E95
secondary
#AFBF50
accent
#E93ED1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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