#2F1BB4#2F1BB4

#2F1BB4 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.5% C 0.218 H 274.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#2F1BB4
RGBrgb(47, 27, 180)
HSLhsl(248, 74%, 41%)
HSVhsv(248, 85%, 71%)
CMYKcmyk(73.9%, 85%, 0%, 29.4%)
CIE-LABlab(25.81, 54.24, -75.28)
CIE-LCHlch(25.81, 92.78, 305.77°)
OKLaboklab(38.49% 0.018 -0.2176)
OKLCHoklch(38.49% 0.218 274.7)
XYZxyz(9.7997, 4.6825, 43.5585)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1BB4 #A0B41B
analogous
#1B53B4 #2F1BB4 #7B1BB4
triadic
#2F1BB4 #B42F1B #1BB42F
tetradic
#2F1BB4 #B41B53 #A0B41B #1BB47B
square
#2F1BB4 #B41B53 #A0B41B #1BB47B
split-complementary
#2F1BB4 #B47B1B #53B41B
monochromatic
#130B4A #21137F #2F1BB4 #442DDF #7362E7

Accessibility & contrast

On white

10.84
#2F1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F1BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1BB4
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1BB4#FFFFFF#000000##FFFFFF
##2F1BB41.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f1bb4;
/* rgb */ color: rgb(47, 27, 180);
/* oklch */ color: oklch(38.5% 0.218 274.7);
Tailwind
colors: {
  custom: {
    50: '#7e5ecc',
    500: '#2f1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f1bb4;
$custom-light: #7e5ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1bb4",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 247.843,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38486,
    "c": 0.21834,
    "h": 274.7
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#2F1BB4
secondary
#BECC5F
accent
#F137D8
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2F1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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