#2F1EA4#2F1EA4

#2F1EA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.198 H 276.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2F1EA4
RGBrgb(47, 30, 164)
HSLhsl(248, 69%, 38%)
HSVhsv(248, 82%, 64%)
CMYKcmyk(71.3%, 81.7%, 0%, 35.7%)
CIE-LABlab(24.36, 48.17, -68.05)
CIE-LCHlch(24.36, 83.37, 305.29°)
OKLaboklab(36.94% 0.0217 -0.1967)
OKLCHoklch(36.94% 0.198 276.3)
XYZxyz(8.3352, 4.2124, 35.4886)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1EA4 #93A41E
analogous
#1E50A4 #2F1EA4 #721EA4
triadic
#2F1EA4 #A42F1E #1EA42F
tetradic
#2F1EA4 #A41E50 #93A41E #1EA472
square
#2F1EA4 #A41E50 #93A41E #1EA472
split-complementary
#2F1EA4 #A4721E #50A41E
monochromatic
#110B3D #201570 #2F1EA4 #3E28D8 #6C5BE1

Accessibility & contrast

On white

11.40
#2F1EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2F1EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1EA4
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1EA4#FFFFFF#000000##FFFFFF
##2F1EA41.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1ea4;
/* rgb */ color: rgb(47, 30, 164);
/* oklch */ color: oklch(36.9% 0.198 276.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ec0',
    500: '#2f1ea4',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ea4;
$custom-light: #7b5ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ea4",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 164
  },
  "hsl": {
    "h": 247.612,
    "s": 69.072,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3694,
    "c": 0.19788,
    "h": 276.3
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#2F1EA4
secondary
#B7C559
accent
#EC3CD6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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