#2B1FA0#2B1FA0

#2B1FA0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.193 H 275.0°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2B1FA0
RGBrgb(43, 31, 160)
HSLhsl(246, 68%, 37%)
HSVhsv(246, 81%, 63%)
CMYKcmyk(73.1%, 80.6%, 0%, 37.3%)
CIE-LABlab(23.77, 46.12, -66.60)
CIE-LCHlch(23.77, 81.01, 304.70°)
OKLaboklab(36.32% 0.0168 -0.1926)
OKLCHoklch(36.32% 0.193 275)
XYZxyz(7.8293, 4.0309, 33.6163)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FA0 #94A01F
analogous
#1F54A0 #2B1FA0 #6B1FA0
triadic
#2B1FA0 #A02B1F #1FA02B
tetradic
#2B1FA0 #A01F54 #94A01F #1FA06B
square
#2B1FA0 #A01F54 #94A01F #1FA06B
split-complementary
#2B1FA0 #A06B1F #54A01F
monochromatic
#0F0B39 #1D156D #2B1FA0 #3929D3 #675ADF

Accessibility & contrast

On white

11.63
#2B1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2B1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FA0
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FA0#FFFFFF#000000##FFFFFF
##2B1FA01.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b1fa0;
/* rgb */ color: rgb(43, 31, 160);
/* oklch */ color: oklch(36.3% 0.193 275.0);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2b1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fa0;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fa0",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 245.581,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36321,
    "c": 0.19331,
    "h": 275
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#2B1FA0
secondary
#B9C358
accent
#EA3DDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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