#2B2387#2B2387

#2B2387 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.158 H 277.5°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2B2387
RGBrgb(43, 35, 135)
HSLhsl(245, 59%, 33%)
HSVhsv(245, 74%, 53%)
CMYKcmyk(68.1%, 74.1%, 0%, 47.1%)
CIE-LABlab(21.82, 35.75, -54.38)
CIE-LCHlch(21.82, 65.08, 303.32°)
OKLaboklab(34.13% 0.0206 -0.157)
OKLCHoklch(34.13% 0.158 277.5)
XYZxyz(5.9690, 3.4644, 23.2711)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2387 #7F8723
analogous
#234D87 #2B2387 #5D2387
triadic
#2B2387 #872B23 #23872B
tetradic
#2B2387 #87234D #7F8723 #23875D
square
#2B2387 #87234D #7F8723 #23875D
split-complementary
#2B2387 #875D23 #4D8723
monochromatic
#0C0A26 #1C1656 #2B2387 #3A30B8 #5C52D2

Accessibility & contrast

On white

12.40
#2B2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2387
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2387#FFFFFF#000000##FFFFFF
##2B23871.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b2387;
/* rgb */ color: rgb(43, 35, 135);
/* oklch */ color: oklch(34.1% 0.158 277.5);
Tailwind
colors: {
  custom: {
    50: '#725fab',
    500: '#2b2387',
    950: '#000000',
  },
}
SCSS
$custom: #2b2387;
$custom-light: #725fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2387",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 244.8,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34134,
    "c": 0.15838,
    "h": 277.5
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#2B2387
secondary
#AEB650
accent
#E246D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2387

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

Preview Lab → · Contrast checker → · Palette generator →

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