#2B2487#2B2487

#2B2487 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.157 H 277.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2B2487
RGBrgb(43, 36, 135)
HSLhsl(244, 58%, 34%)
HSVhsv(244, 73%, 53%)
CMYKcmyk(68.1%, 73.3%, 0%, 47.1%)
CIE-LABlab(22.03, 35.15, -54.02)
CIE-LCHlch(22.03, 64.45, 303.05°)
OKLaboklab(34.29% 0.0199 -0.156)
OKLCHoklch(34.29% 0.157 277.3)
XYZxyz(5.9989, 3.5241, 23.2811)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2487 #808724
analogous
#244E87 #2B2487 #5C2487
triadic
#2B2487 #872B24 #24872B
tetradic
#2B2487 #87244E #808724 #24875C
square
#2B2487 #87244E #808724 #24875C
split-complementary
#2B2487 #875C24 #4E8724
monochromatic
#0C0A26 #1C1757 #2B2487 #3A31B7 #5D54D1

Accessibility & contrast

On white

12.32
#2B2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2487
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2487#FFFFFF#000000##FFFFFF
##2B24871.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2487;
/* rgb */ color: rgb(43, 36, 135);
/* oklch */ color: oklch(34.3% 0.157 277.3);
Tailwind
colors: {
  custom: {
    50: '#7260ab',
    500: '#2b2487',
    950: '#000000',
  },
}
SCSS
$custom: #2b2487;
$custom-light: #7260ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2487",
  "rgb": {
    "r": 43,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 244.242,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34288,
    "c": 0.15727,
    "h": 277.3
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#2B2487
secondary
#AEB551
accent
#E147D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2487

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

Preview Lab → · Contrast checker → · Palette generator →

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