#2F1AB3#2F1AB3

#2F1AB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.3% C 0.218 H 274.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2F1AB3
RGBrgb(47, 26, 179)
HSLhsl(248, 75%, 40%)
HSVhsv(248, 85%, 70%)
CMYKcmyk(73.7%, 85.5%, 0%, 29.8%)
CIE-LABlab(25.55, 54.35, -75.11)
CIE-LCHlch(25.55, 92.71, 305.89°)
OKLaboklab(38.28% 0.0186 -0.2171)
OKLCHoklch(38.28% 0.218 274.9)
XYZxyz(9.6757, 4.5968, 43.0164)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1AB3 #9EB31A
analogous
#1A52B3 #2F1AB3 #7B1AB3
triadic
#2F1AB3 #B32F1A #1AB32F
tetradic
#2F1AB3 #B31A52 #9EB31A #1AB37B
square
#2F1AB3 #B31A52 #9EB31A #1AB37B
split-complementary
#2F1AB3 #B37B1A #52B31A
monochromatic
#130A48 #21127E #2F1AB3 #432AE0 #7260E8

Accessibility & contrast

On white

10.94
#2F1AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F1AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1AB3
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1AB3#FFFFFF#000000##FFFFFF
##2F1AB31.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0036B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f1ab3;
/* rgb */ color: rgb(47, 26, 179);
/* oklch */ color: oklch(38.3% 0.218 274.9);
Tailwind
colors: {
  custom: {
    50: '#7e5ecb',
    500: '#2f1ab3',
    950: '#000000',
  },
}
SCSS
$custom: #2f1ab3;
$custom-light: #7e5ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1ab3",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 248.235,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38275,
    "c": 0.21788,
    "h": 274.9
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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