#2F1EA6#2F1EA6

#2F1EA6 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.200 H 276.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2F1EA6
RGBrgb(47, 30, 166)
HSLhsl(248, 69%, 38%)
HSVhsv(248, 82%, 65%)
CMYKcmyk(71.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(24.59, 48.78, -68.88)
CIE-LCHlch(24.59, 84.40, 305.30°)
OKLaboklab(37.17% 0.0211 -0.1991)
OKLCHoklch(37.17% 0.2 276)
XYZxyz(8.5172, 4.2852, 36.4473)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1EA6 #95A61E
analogous
#1E51A6 #2F1EA6 #731EA6
triadic
#2F1EA6 #A62F1E #1EA62F
tetradic
#2F1EA6 #A61E51 #95A61E #1EA673
square
#2F1EA6 #A61E51 #95A61E #1EA673
split-complementary
#2F1EA6 #A6731E #51A61E
monochromatic
#120B3E #201572 #2F1EA6 #3F29D8 #6D5DE2

Accessibility & contrast

On white

11.31
#2F1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1EA6
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1EA6#FFFFFF#000000##FFFFFF
##2F1EA61.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1ea6;
/* rgb */ color: rgb(47, 30, 166);
/* oklch */ color: oklch(37.2% 0.200 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ec2',
    500: '#2f1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ea6;
$custom-light: #7b5ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ea6",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 247.5,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37168,
    "c": 0.20021,
    "h": 276
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#2F1EA6
secondary
#B8C65A
accent
#EC3CD6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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