#2B2887#2B2887

#2B2887 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.153 H 276.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2B2887
RGBrgb(43, 40, 135)
HSLhsl(242, 54%, 34%)
HSVhsv(242, 70%, 53%)
CMYKcmyk(68.1%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.93, 32.68, -52.55)
CIE-LCHlch(22.93, 61.88, 301.88°)
OKLaboklab(34.93% 0.017 -0.1517)
OKLCHoklch(34.93% 0.153 276.4)
XYZxyz(6.1268, 3.7799, 23.3237)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2887 #848728
analogous
#285587 #2B2887 #5B2887
triadic
#2B2887 #872B28 #28872B
tetradic
#2B2887 #872855 #848728 #28875B
square
#2B2887 #872855 #848728 #28875B
split-complementary
#2B2887 #875B28 #558728
monochromatic
#0D0C29 #1C1A58 #2B2887 #3A36B6 #5F5BCE

Accessibility & contrast

On white

11.96
#2B2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2B2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2887
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2887#FFFFFF#000000##FFFFFF
##2B28871.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2887;
/* rgb */ color: rgb(43, 40, 135);
/* oklch */ color: oklch(34.9% 0.153 276.4);
Tailwind
colors: {
  custom: {
    50: '#7163ab',
    500: '#2b2887',
    950: '#000000',
  },
}
SCSS
$custom: #2b2887;
$custom-light: #7163ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2887",
  "rgb": {
    "r": 43,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 241.895,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.15265,
    "h": 276.4
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#2B2887
secondary
#B1B457
accent
#DE4AD9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2887

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

Preview Lab → · Contrast checker → · Palette generator →

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