#2B3386#2B3386

#2B3386 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.137 H 273.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2B3386
RGBrgb(43, 51, 134)
HSLhsl(235, 51%, 35%)
HSVhsv(235, 68%, 53%)
CMYKcmyk(67.9%, 61.9%, 0%, 47.5%)
CIE-LABlab(25.57, 25.10, -47.61)
CIE-LCHlch(25.57, 53.82, 297.80°)
OKLaboklab(36.83% 0.0081 -0.1371)
OKLCHoklch(36.83% 0.137 273.4)
XYZxyz(6.4817, 4.6019, 23.0963)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3386 #867E2B
analogous
#2B6186 #2B3386 #502B86
triadic
#2B3386 #862B33 #33862B
tetradic
#2B3386 #862B61 #867E2B #2B8650
square
#2B3386 #862B61 #867E2B #2B8650
split-complementary
#2B3386 #86502B #61862B
monochromatic
#0D1029 #1C2158 #2B3386 #3A45B4 #6069CC

Accessibility & contrast

On white

10.94
#2B3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2B3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3386
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3386#FFFFFF#000000##FFFFFF
##2B33861.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b3386;
/* rgb */ color: rgb(43, 51, 134);
/* oklch */ color: oklch(36.8% 0.137 273.4);
Tailwind
colors: {
  custom: {
    50: '#706aaa',
    500: '#2b3386',
    950: '#000000',
  },
}
SCSS
$custom: #2b3386;
$custom-light: #706aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3386",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 234.725,
    "s": 51.412,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36833,
    "c": 0.13739,
    "h": 273.4
  },
  "luminance": 0.04602
}

Semantic roles & 50–950 ramp

primary
#2B3386
secondary
#B2AA5B
accent
#CE4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2B3386

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

Preview Lab → · Contrast checker → · Palette generator →

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