#2B1FA5#2B1FA5

#2B1FA5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.199 H 274.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2B1FA5
RGBrgb(43, 31, 165)
HSLhsl(245, 68%, 38%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(73.9%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.35, 47.68, -68.68)
CIE-LCHlch(24.35, 83.61, 304.77°)
OKLaboklab(36.89% 0.0155 -0.1986)
OKLCHoklch(36.89% 0.199 274.5)
XYZxyz(8.2755, 4.2093, 35.9664)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1FA5 #99A51F
analogous
#1F56A5 #2B1FA5 #6E1FA5
triadic
#2B1FA5 #A52B1F #1FA52B
tetradic
#2B1FA5 #A51F56 #99A51F #1FA56E
square
#2B1FA5 #A51F56 #99A51F #1FA56E
split-complementary
#2B1FA5 #A56E1F #56A51F
monochromatic
#100C3E #1E1571 #2B1FA5 #3A2AD7 #695EE1

Accessibility & contrast

On white

11.40
#2B1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1FA5
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1FA5#FFFFFF#000000##FFFFFF
##2B1FA51.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1fa5;
/* rgb */ color: rgb(43, 31, 165);
/* oklch */ color: oklch(36.9% 0.199 274.5);
Tailwind
colors: {
  custom: {
    50: '#795fc1',
    500: '#2b1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2b1fa5;
$custom-light: #795fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1fa5",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 245.373,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36892,
    "c": 0.19924,
    "h": 274.5
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#2B1FA5
secondary
#BCC55B
accent
#EB3DDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2B1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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