#2B3387#2B3387

#2B3387 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.139 H 273.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2B3387
RGBrgb(43, 51, 135)
HSLhsl(235, 52%, 35%)
HSVhsv(235, 68%, 53%)
CMYKcmyk(68.1%, 62.2%, 0%, 47.1%)
CIE-LABlab(25.65, 25.47, -48.09)
CIE-LCHlch(25.65, 54.42, 297.91°)
OKLaboklab(36.92% 0.0081 -0.1386)
OKLCHoklch(36.92% 0.139 273.3)
XYZxyz(6.5518, 4.6299, 23.4654)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3387 #877F2B
analogous
#2B6187 #2B3387 #512B87
triadic
#2B3387 #872B33 #33872B
tetradic
#2B3387 #872B61 #877F2B #2B8751
square
#2B3387 #872B61 #877F2B #2B8751
split-complementary
#2B3387 #87512B #61872B
monochromatic
#0D102A #1C2159 #2B3387 #3A45B5 #6069CC

Accessibility & contrast

On white

10.90
#2B3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3387
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3387#FFFFFF#000000##FFFFFF
##2B33871.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b3387;
/* rgb */ color: rgb(43, 51, 135);
/* oklch */ color: oklch(36.9% 0.139 273.3);
Tailwind
colors: {
  custom: {
    50: '#706aab',
    500: '#2b3387',
    950: '#000000',
  },
}
SCSS
$custom: #2b3387;
$custom-light: #706aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3387",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 234.783,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36921,
    "c": 0.13881,
    "h": 273.3
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#2B3387
secondary
#B2AB5B
accent
#CF4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2B3387

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

Preview Lab → · Contrast checker → · Palette generator →

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