#2B2D87#2B2D87

#2B2D87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.147 H 275.1°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#2B2D87
RGBrgb(43, 45, 135)
HSLhsl(239, 52%, 35%)
HSVhsv(239, 68%, 53%)
CMYKcmyk(68.1%, 66.7%, 0%, 47.1%)
CIE-LABlab(24.13, 29.46, -50.59)
CIE-LCHlch(24.13, 58.54, 300.22°)
OKLaboklab(35.8% 0.0131 -0.1459)
OKLCHoklch(35.8% 0.147 275.1)
XYZxyz(6.3064, 4.1391, 23.3836)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2D87 #87852B
analogous
#2B5B87 #2B2D87 #572B87
triadic
#2B2D87 #872B2D #2D872B
tetradic
#2B2D87 #872B5B #87852B #2B8757
square
#2B2D87 #872B5B #87852B #2B8757
split-complementary
#2B2D87 #87572B #5B872B
monochromatic
#0D0E2A #1C1E59 #2B2D87 #3A3CB5 #6062CC

Accessibility & contrast

On white

11.49
#2B2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2B2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2D87
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2D87#FFFFFF#000000##FFFFFF
##2B2D871.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2d87;
/* rgb */ color: rgb(43, 45, 135);
/* oklch */ color: oklch(35.8% 0.147 275.1);
Tailwind
colors: {
  custom: {
    50: '#7166ab',
    500: '#2b2d87',
    950: '#000000',
  },
}
SCSS
$custom: #2b2d87;
$custom-light: #7166ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2d87",
  "rgb": {
    "r": 43,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 238.696,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.358,
    "c": 0.14654,
    "h": 275.1
  },
  "luminance": 0.0414
}

Semantic roles & 50–950 ramp

primary
#2B2D87
secondary
#B2B05B
accent
#D84DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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