#2B1FA4#2B1FA4

#2B1FA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.198 H 274.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#2B1FA4
RGBrgb(43, 31, 164)
HSLhsl(245, 68%, 38%)
HSVhsv(245, 81%, 64%)
CMYKcmyk(73.8%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.24, 47.37, -68.27)
CIE-LCHlch(24.24, 83.09, 304.76°)
OKLaboklab(36.78% 0.0158 -0.1974)
OKLCHoklch(36.78% 0.198 274.6)
XYZxyz(8.1849, 4.1731, 35.4889)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FA4 #98A41F
analogous
#1F55A4 #2B1FA4 #6E1FA4
triadic
#2B1FA4 #A42B1F #1FA42B
tetradic
#2B1FA4 #A41F55 #98A41F #1FA46E
square
#2B1FA4 #A41F55 #98A41F #1FA46E
split-complementary
#2B1FA4 #A46E1F #55A41F
monochromatic
#100C3D #1E1571 #2B1FA4 #392AD7 #695DE0

Accessibility & contrast

On white

11.45
#2B1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2B1FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FA4
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FA4#FFFFFF#000000##FFFFFF
##2B1FA41.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA8
Deuteranopia (green-blind)
#0033A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1fa4;
/* rgb */ color: rgb(43, 31, 164);
/* oklch */ color: oklch(36.8% 0.198 274.6);
Tailwind
colors: {
  custom: {
    50: '#795fc0',
    500: '#2b1fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fa4;
$custom-light: #795fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fa4",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 245.414,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36777,
    "c": 0.19805,
    "h": 274.6
  },
  "luminance": 0.04174
}

Semantic roles & 50–950 ramp

primary
#2B1FA4
secondary
#BBC55A
accent
#EB3DDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B1FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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