#2B2687#2B2687

#2B2687 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.155 H 276.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2B2687
RGBrgb(43, 38, 135)
HSLhsl(243, 56%, 34%)
HSVhsv(243, 72%, 53%)
CMYKcmyk(68.1%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.47, 33.92, -53.30)
CIE-LCHlch(22.47, 63.18, 302.48°)
OKLaboklab(34.61% 0.0185 -0.1539)
OKLCHoklch(34.61% 0.155 276.8)
XYZxyz(6.0611, 3.6486, 23.3018)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2687 #828726
analogous
#265287 #2B2687 #5C2687
triadic
#2B2687 #872B26 #26872B
tetradic
#2B2687 #872652 #828726 #26875C
square
#2B2687 #872652 #828726 #26875C
split-complementary
#2B2687 #875C26 #528726
monochromatic
#0D0B27 #1C1957 #2B2687 #3A33B7 #5E58D0

Accessibility & contrast

On white

12.14
#2B2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2687
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2687#FFFFFF#000000##FFFFFF
##2B26871.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2687;
/* rgb */ color: rgb(43, 38, 135);
/* oklch */ color: oklch(34.6% 0.155 276.8);
Tailwind
colors: {
  custom: {
    50: '#7261ab',
    500: '#2b2687',
    950: '#000000',
  },
}
SCSS
$custom: #2b2687;
$custom-light: #7261ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2687",
  "rgb": {
    "r": 43,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 243.093,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34605,
    "c": 0.155,
    "h": 276.8
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#2B2687
secondary
#B0B554
accent
#DF48D8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2687

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

Preview Lab → · Contrast checker → · Palette generator →

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