#2F1EA1#2F1EA1

#2F1EA1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.194 H 276.7°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2F1EA1
RGBrgb(47, 30, 161)
HSLhsl(248, 69%, 37%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(70.8%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.02, 47.25, -66.80)
CIE-LCHlch(24.02, 81.82, 305.28°)
OKLaboklab(36.6% 0.0225 -0.193)
OKLCHoklch(36.6% 0.194 276.7)
XYZxyz(8.0675, 4.1053, 34.0786)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1EA1 #90A11E
analogous
#1E4FA1 #2F1EA1 #701EA1
triadic
#2F1EA1 #A12F1E #1EA12F
tetradic
#2F1EA1 #A11E4F #90A11E #1EA170
square
#2F1EA1 #A11E4F #90A11E #1EA170
split-complementary
#2F1EA1 #A1701E #4FA11E
monochromatic
#110B3A #20146D #2F1EA1 #3E28D5 #6B59E0

Accessibility & contrast

On white

11.53
#2F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1EA1
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1EA1#FFFFFF#000000##FFFFFF
##2F1EA11.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1ea1;
/* rgb */ color: rgb(47, 30, 161);
/* oklch */ color: oklch(36.6% 0.194 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ebe',
    500: '#2f1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ea1;
$custom-light: #7a5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ea1",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 247.786,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.366,
    "c": 0.19436,
    "h": 276.7
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#2F1EA1
secondary
#B6C457
accent
#EB3CD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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