#2B1B8E#2B1B8E

#2B1B8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.175 H 277.7°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2B1B8E
RGBrgb(43, 27, 142)
HSLhsl(248, 68%, 33%)
HSVhsv(248, 81%, 56%)
CMYKcmyk(69.7%, 81%, 0%, 44.3%)
CIE-LABlab(21.02, 42.46, -60.07)
CIE-LCHlch(21.02, 73.56, 305.25°)
OKLaboklab(33.8% 0.0236 -0.1735)
OKLCHoklch(33.8% 0.175 277.7)
XYZxyz(6.2691, 3.2499, 25.8829)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B8E #7E8E1B
analogous
#1B448E #2B1B8E #641B8E
triadic
#2B1B8E #8E2B1B #1B8E2B
tetradic
#2B1B8E #8E1B44 #7E8E1B #1B8E64
square
#2B1B8E #8E1B44 #7E8E1B #1B8E64
split-complementary
#2B1B8E #8E641B #448E1B
monochromatic
#0C0727 #1B115B #2B1B8E #3B25C1 #5C47DC

Accessibility & contrast

On white

12.73
#2B1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1B8E
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B8E#FFFFFF#000000##FFFFFF
##2B1B8E1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1b8e;
/* rgb */ color: rgb(43, 27, 142);
/* oklch */ color: oklch(33.8% 0.175 277.7);
Tailwind
colors: {
  custom: {
    50: '#745bb0',
    500: '#2b1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b8e;
$custom-light: #745bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b8e",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 248.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33798,
    "c": 0.17514,
    "h": 277.7
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#2B1B8E
secondary
#ADBE47
accent
#EB3DD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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