#2B1B8F#2B1B8F

#2B1B8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.176 H 277.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2B1B8F
RGBrgb(43, 27, 143)
HSLhsl(248, 68%, 33%)
HSVhsv(248, 81%, 56%)
CMYKcmyk(69.9%, 81.1%, 0%, 43.9%)
CIE-LABlab(21.13, 42.77, -60.50)
CIE-LCHlch(21.13, 74.09, 305.26°)
OKLaboklab(33.91% 0.0233 -0.1748)
OKLCHoklch(33.91% 0.176 277.6)
XYZxyz(6.3445, 3.2801, 26.2800)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B8F #7F8F1B
analogous
#1B458F #2B1B8F #651B8F
triadic
#2B1B8F #8F2B1B #1B8F2B
tetradic
#2B1B8F #8F1B45 #7F8F1B #1B8F65
square
#2B1B8F #8F1B45 #7F8F1B #1B8F65
split-complementary
#2B1B8F #8F651B #458F1B
monochromatic
#0C0828 #1C115C #2B1B8F #3A25C2 #5C48DC

Accessibility & contrast

On white

12.68
#2B1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2B1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B8F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B8F#FFFFFF#000000##FFFFFF
##2B1B8F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2b1b8f;
/* rgb */ color: rgb(43, 27, 143);
/* oklch */ color: oklch(33.9% 0.176 277.6);
Tailwind
colors: {
  custom: {
    50: '#745bb1',
    500: '#2b1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b8f;
$custom-light: #745bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b8f",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 248.276,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33911,
    "c": 0.17635,
    "h": 277.6
  },
  "luminance": 0.03281
}

Semantic roles & 50–950 ramp

primary
#2B1B8F
secondary
#AEBE48
accent
#EB3DD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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