#2B1C8F#2B1C8F

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

Color values

HEX#2B1C8F
RGBrgb(43, 28, 143)
HSLhsl(248, 67%, 34%)
HSVhsv(248, 80%, 56%)
CMYKcmyk(69.9%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.31, 42.27, -60.21)
CIE-LCHlch(21.31, 73.57, 305.07°)
OKLaboklab(34.03% 0.0228 -0.174)
OKLCHoklch(34.03% 0.175 277.5)
XYZxyz(6.3678, 3.3267, 26.2878)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1C8F #808F1C
analogous
#1C468F #2B1C8F #641C8F
triadic
#2B1C8F #8F2B1C #1C8F2B
tetradic
#2B1C8F #8F1C46 #808F1C #1C8F64
square
#2B1C8F #8F1C46 #808F1C #1C8F64
split-complementary
#2B1C8F #8F641C #468F1C
monochromatic
#0C0829 #1C125C #2B1C8F #3A26C2 #5D4ADC

Accessibility & contrast

On white

12.61
#2B1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2B1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1C8F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1C8F#FFFFFF#000000##FFFFFF
##2B1C8F1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1c8f;
/* rgb */ color: rgb(43, 28, 143);
/* oklch */ color: oklch(34.0% 0.175 277.5);
Tailwind
colors: {
  custom: {
    50: '#745cb1',
    500: '#2b1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1c8f;
$custom-light: #745cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1c8f",
  "rgb": {
    "r": 43,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 247.826,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34033,
    "c": 0.17547,
    "h": 277.5
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#2B1C8F
secondary
#AEBE49
accent
#EA3ED4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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