#2F1FA8#2F1FA8

#2F1FA8 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.5% C 0.202 H 275.7°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#2F1FA8
RGBrgb(47, 31, 168)
HSLhsl(247, 69%, 39%)
HSVhsv(247, 82%, 66%)
CMYKcmyk(72%, 81.5%, 0%, 34.1%)
CIE-LABlab(24.98, 48.92, -69.44)
CIE-LCHlch(24.98, 84.94, 305.16°)
OKLaboklab(37.51% 0.0202 -0.2007)
OKLCHoklch(37.51% 0.202 275.7)
XYZxyz(8.7278, 4.4106, 37.4296)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FA8 #98A81F
analogous
#1F54A8 #2F1FA8 #741FA8
triadic
#2F1FA8 #A82F1F #1FA82F
tetradic
#2F1FA8 #A81F54 #98A81F #1FA874
square
#2F1FA8 #A81F54 #98A81F #1FA874
split-complementary
#2F1FA8 #A8741F #54A81F
monochromatic
#120C41 #211574 #2F1FA8 #402CD8 #6F60E2

Accessibility & contrast

On white

11.16
#2F1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FA8
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FA8#FFFFFF#000000##FFFFFF
##2F1FA81.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f1fa8;
/* rgb */ color: rgb(47, 31, 168);
/* oklch */ color: oklch(37.5% 0.202 275.7);
Tailwind
colors: {
  custom: {
    50: '#7b5fc3',
    500: '#2f1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fa8;
$custom-light: #7b5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fa8",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 247.007,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37507,
    "c": 0.20175,
    "h": 275.7
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#2F1FA8
secondary
#BAC65D
accent
#EC3CD7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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