#2F1CA7#2F1CA7

#2F1CA7 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.203 H 276.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#2F1CA7
RGBrgb(47, 28, 167)
HSLhsl(248, 71%, 38%)
HSVhsv(248, 83%, 65%)
CMYKcmyk(71.9%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.40, 49.99, -69.81)
CIE-LCHlch(24.40, 85.86, 305.61°)
OKLaboklab(37.07% 0.0216 -0.2018)
OKLCHoklch(37.07% 0.203 276.1)
XYZxyz(8.5603, 4.2241, 36.9159)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1CA7 #94A71C
analogous
#1C4FA7 #2F1CA7 #741CA7
triadic
#2F1CA7 #A72F1C #1CA72F
tetradic
#2F1CA7 #A71C4F #94A71C #1CA774
square
#2F1CA7 #A71C4F #94A71C #1CA774
split-complementary
#2F1CA7 #A7741C #4FA71C
monochromatic
#110A3E #201373 #2F1CA7 #3E26DB #6D5AE3

Accessibility & contrast

On white

11.38
#2F1CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F1CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1CA7
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1CA7#FFFFFF#000000##FFFFFF
##2F1CA71.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1ca7;
/* rgb */ color: rgb(47, 28, 167);
/* oklch */ color: oklch(37.1% 0.203 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ec3',
    500: '#2f1ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ca7;
$custom-light: #7b5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ca7",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 248.201,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37068,
    "c": 0.2029,
    "h": 276.1
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#2F1CA7
secondary
#B8C758
accent
#EE3AD5
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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