#2F1FA5#2F1FA5

#2F1FA5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.198 H 276.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1FA5
RGBrgb(47, 31, 165)
HSLhsl(247, 68%, 38%)
HSVhsv(247, 81%, 65%)
CMYKcmyk(71.5%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.64, 48.00, -68.20)
CIE-LCHlch(24.64, 83.39, 305.14°)
OKLaboklab(37.17% 0.021 -0.1971)
OKLCHoklch(37.17% 0.198 276.1)
XYZxyz(8.4516, 4.3001, 35.9746)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FA5 #95A51F
analogous
#1F52A5 #2F1FA5 #721FA5
triadic
#2F1FA5 #A52F1F #1FA52F
tetradic
#2F1FA5 #A51F52 #95A51F #1FA572
square
#2F1FA5 #A51F52 #95A51F #1FA572
split-complementary
#2F1FA5 #A5721F #52A51F
monochromatic
#120C3E #201571 #2F1FA5 #3F2AD7 #6D5EE1

Accessibility & contrast

On white

11.29
#2F1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FA5
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FA5#FFFFFF#000000##FFFFFF
##2F1FA51.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1fa5;
/* rgb */ color: rgb(47, 31, 165);
/* oklch */ color: oklch(37.2% 0.198 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fc1',
    500: '#2f1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fa5;
$custom-light: #7b5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fa5",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 247.164,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37167,
    "c": 0.19824,
    "h": 276.1
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#2F1FA5
secondary
#B8C55B
accent
#EB3DD6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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