#2B2B87#2B2B87

#2B2B87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.149 H 275.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2B2B87
RGBrgb(43, 43, 135)
HSLhsl(240, 52%, 35%)
HSVhsv(240, 68%, 53%)
CMYKcmyk(68.1%, 68.1%, 0%, 47.1%)
CIE-LABlab(23.64, 30.76, -51.38)
CIE-LCHlch(23.64, 59.89, 300.91°)
OKLaboklab(35.45% 0.0147 -0.1483)
OKLCHoklch(35.45% 0.149 275.7)
XYZxyz(6.2319, 3.9901, 23.3587)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B87 #87872B
analogous
#2B5987 #2B2B87 #592B87
triadic
#2B2B87 #872B2B #2B872B
tetradic
#2B2B87 #872B59 #87872B #2B8759
square
#2B2B87 #872B59 #87872B #2B8759
split-complementary
#2B2B87 #87592B #59872B
monochromatic
#0D0D2A #1C1C59 #2B2B87 #3A3AB5 #6060CC

Accessibility & contrast

On white

11.68
#2B2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B87
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B87#FFFFFF#000000##FFFFFF
##2B2B871.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2b87;
/* rgb */ color: rgb(43, 43, 135);
/* oklch */ color: oklch(35.4% 0.149 275.7);
Tailwind
colors: {
  custom: {
    50: '#7165ab',
    500: '#2b2b87',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b87;
$custom-light: #7165ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b87",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35445,
    "c": 0.14902,
    "h": 275.7
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#2B2B87
secondary
#B2B25B
accent
#DB4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2B2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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