#2F1FA0#2F1FA0

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

Color values

HEX#2F1FA0
RGBrgb(47, 31, 160)
HSLhsl(247, 68%, 37%)
HSVhsv(247, 81%, 63%)
CMYKcmyk(70.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(24.07, 46.46, -66.10)
CIE-LCHlch(24.07, 80.79, 305.10°)
OKLaboklab(36.6% 0.0224 -0.191)
OKLCHoklch(36.6% 0.192 276.7)
XYZxyz(8.0054, 4.1216, 33.6246)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FA0 #90A01F
analogous
#1F4FA0 #2F1FA0 #701FA0
triadic
#2F1FA0 #A02F1F #1FA02F
tetradic
#2F1FA0 #A01F4F #90A01F #1FA070
square
#2F1FA0 #A01F4F #90A01F #1FA070
split-complementary
#2F1FA0 #A0701F #4FA01F
monochromatic
#110B39 #20156D #2F1FA0 #3E29D3 #6B5ADF

Accessibility & contrast

On white

11.51
#2F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1FA0
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FA0#FFFFFF#000000##FFFFFF
##2F1FA01.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1fa0;
/* rgb */ color: rgb(47, 31, 160);
/* oklch */ color: oklch(36.6% 0.192 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fbd',
    500: '#2f1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fa0;
$custom-light: #7a5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fa0",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 247.442,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36604,
    "c": 0.19235,
    "h": 276.7
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#2F1FA0
secondary
#B6C358
accent
#EA3DD5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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