#2B1C8E#2B1C8E

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

Color values

HEX#2B1C8E
RGBrgb(43, 28, 142)
HSLhsl(248, 67%, 33%)
HSVhsv(248, 80%, 56%)
CMYKcmyk(69.7%, 80.3%, 0%, 44.3%)
CIE-LABlab(21.19, 41.95, -59.78)
CIE-LCHlch(21.19, 73.03, 305.06°)
OKLaboklab(33.92% 0.0231 -0.1727)
OKLCHoklch(33.92% 0.174 277.6)
XYZxyz(6.2924, 3.2965, 25.8906)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C8E #7F8E1C
analogous
#1C468E #2B1C8E #641C8E
triadic
#2B1C8E #8E2B1C #1C8E2B
tetradic
#2B1C8E #8E1C46 #7F8E1C #1C8E64
square
#2B1C8E #8E1C46 #7F8E1C #1C8E64
split-complementary
#2B1C8E #8E641C #468E1C
monochromatic
#0C0828 #1C125B #2B1C8E #3A26C1 #5C49DB

Accessibility & contrast

On white

12.66
#2B1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1C8E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C8E#FFFFFF#000000##FFFFFF
##2B1C8E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.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: #2b1c8e;
/* rgb */ color: rgb(43, 28, 142);
/* oklch */ color: oklch(33.9% 0.174 277.6);
Tailwind
colors: {
  custom: {
    50: '#745bb0',
    500: '#2b1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c8e;
$custom-light: #745bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c8e",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 247.895,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33921,
    "c": 0.17425,
    "h": 277.6
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#2B1C8E
secondary
#AEBD49
accent
#EA3ED3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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