#2B2587#2B2587

#2B2587 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.156 H 277.1°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2B2587
RGBrgb(43, 37, 135)
HSLhsl(244, 57%, 34%)
HSVhsv(244, 73%, 53%)
CMYKcmyk(68.1%, 72.6%, 0%, 47.1%)
CIE-LABlab(22.25, 34.54, -53.66)
CIE-LCHlch(22.25, 63.82, 302.77°)
OKLaboklab(34.45% 0.0192 -0.155)
OKLCHoklch(34.45% 0.156 277.1)
XYZxyz(6.0296, 3.5855, 23.2913)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2587 #818725
analogous
#255087 #2B2587 #5C2587
triadic
#2B2587 #872B25 #25872B
tetradic
#2B2587 #872550 #818725 #25875C
square
#2B2587 #872550 #818725 #25875C
split-complementary
#2B2587 #875C25 #508725
monochromatic
#0C0B27 #1C1857 #2B2587 #3A32B7 #5D56D1

Accessibility & contrast

On white

12.23
#2B2587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B2587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2587
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2587#FFFFFF#000000##FFFFFF
##2B25871.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2587;
/* rgb */ color: rgb(43, 37, 135);
/* oklch */ color: oklch(34.4% 0.156 277.1);
Tailwind
colors: {
  custom: {
    50: '#7261ab',
    500: '#2b2587',
    950: '#000000',
  },
}
SCSS
$custom: #2b2587;
$custom-light: #7261ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2587",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 243.673,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34445,
    "c": 0.15614,
    "h": 277.1
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#2B2587
secondary
#AFB553
accent
#E048D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2587

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

Preview Lab → · Contrast checker → · Palette generator →

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