#2F1AA0#2F1AA0

#2F1AA0 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.196 H 277.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F1AA0
RGBrgb(47, 26, 160)
HSLhsl(249, 72%, 36%)
HSVhsv(249, 84%, 63%)
CMYKcmyk(70.6%, 83.8%, 0%, 37.3%)
CIE-LABlab(23.27, 48.79, -67.42)
CIE-LCHlch(23.27, 83.22, 305.89°)
OKLaboklab(36.05% 0.0245 -0.1948)
OKLCHoklch(36.05% 0.196 277.2)
XYZxyz(7.8848, 3.8805, 33.5844)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1AA0 #8BA01A
analogous
#1A48A0 #2F1AA0 #721AA0
triadic
#2F1AA0 #A02F1A #1AA02F
tetradic
#2F1AA0 #A01A48 #8BA01A #1AA072
square
#2F1AA0 #A01A48 #8BA01A #1AA072
split-complementary
#2F1AA0 #A0721A #48A01A
monochromatic
#100937 #20116B #2F1AA0 #3E23D5 #6852E3

Accessibility & contrast

On white

11.82
#2F1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1AA0
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1AA0#FFFFFF#000000##FFFFFF
##2F1AA01.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00329E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1aa0;
/* rgb */ color: rgb(47, 26, 160);
/* oklch */ color: oklch(36.1% 0.196 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a5cbd',
    500: '#2f1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2f1aa0;
$custom-light: #7a5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1aa0",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 249.403,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.19632,
    "h": 277.2
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#2F1AA0
secondary
#B3C550
accent
#EF39D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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