#2B1F80#2B1F80

#2B1F80 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.154 H 279.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2B1F80
RGBrgb(43, 31, 128)
HSLhsl(247, 61%, 31%)
HSVhsv(247, 76%, 50%)
CMYKcmyk(66.4%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.25, 35.75, -52.54)
CIE-LCHlch(20.25, 63.55, 304.23°)
OKLaboklab(32.8% 0.0248 -0.1517)
OKLCHoklch(32.8% 0.154 279.3)
XYZxyz(5.3813, 3.0516, 20.7233)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F80 #74801F
analogous
#1F4380 #2B1F80 #5B1F80
triadic
#2B1F80 #802B1F #1F802B
tetradic
#2B1F80 #801F43 #74801F #1F805B
square
#2B1F80 #801F43 #74801F #1F805B
split-complementary
#2B1F80 #805B1F #43801F
monochromatic
#0A071D #1A134F #2B1F80 #3C2BB1 #5847D2

Accessibility & contrast

On white

13.04
#2B1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F80
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F80#FFFFFF#000000##FFFFFF
##2B1F801.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b1f80;
/* rgb */ color: rgb(43, 31, 128);
/* oklch */ color: oklch(32.8% 0.154 279.3);
Tailwind
colors: {
  custom: {
    50: '#715ca6',
    500: '#2b1f80',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f80;
$custom-light: #715ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f80",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 247.423,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32803,
    "c": 0.15368,
    "h": 279.3
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#2B1F80
secondary
#A6B348
accent
#E444D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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