#2F1EA0#2F1EA0

#2F1EA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.193 H 276.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2F1EA0
RGBrgb(47, 30, 160)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(70.6%, 81.3%, 0%, 37.3%)
CIE-LABlab(23.90, 46.95, -66.38)
CIE-LCHlch(23.90, 81.30, 305.27°)
OKLaboklab(36.49% 0.0228 -0.1918)
OKLCHoklch(36.49% 0.193 276.8)
XYZxyz(7.9797, 4.0702, 33.6160)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1EA0 #8FA01E
analogous
#1E4EA0 #2F1EA0 #701EA0
triadic
#2F1EA0 #A02F1E #1EA02F
tetradic
#2F1EA0 #A01E4E #8FA01E #1EA070
square
#2F1EA0 #A01E4E #8FA01E #1EA070
split-complementary
#2F1EA0 #A0701E #4EA01E
monochromatic
#110B39 #20146C #2F1EA0 #3E28D4 #6A59E0

Accessibility & contrast

On white

11.58
#2F1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1EA0
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1EA0#FFFFFF#000000##FFFFFF
##2F1EA01.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1ea0;
/* rgb */ color: rgb(47, 30, 160);
/* oklch */ color: oklch(36.5% 0.193 276.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ebd',
    500: '#2f1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ea0;
$custom-light: #7a5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ea0",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 247.846,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36487,
    "c": 0.19318,
    "h": 276.8
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#2F1EA0
secondary
#B5C456
accent
#EB3DD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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