#2B3D87#2B3D87

#2B3D87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.125 H 269.5°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#2B3D87
RGBrgb(43, 61, 135)
HSLhsl(228, 52%, 35%)
HSVhsv(228, 68%, 53%)
CMYKcmyk(68.1%, 54.8%, 0%, 47.1%)
CIE-LABlab(28.38, 18.66, -43.67)
CIE-LCHlch(28.38, 47.49, 293.14°)
OKLaboklab(38.96% -0.0012 -0.1254)
OKLCHoklch(38.96% 0.125 269.5)
XYZxyz(7.0367, 5.5997, 23.6270)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3D87 #87752B
analogous
#2B6B87 #2B3D87 #472B87
triadic
#2B3D87 #872B3D #3D872B
tetradic
#2B3D87 #872B6B #87752B #2B8747
square
#2B3D87 #872B6B #87752B #2B8747
split-complementary
#2B3D87 #87472B #6B872B
monochromatic
#0D132A #1C2859 #2B3D87 #3A52B5 #6075CC

Accessibility & contrast

On white

9.91
#2B3D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B3D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3D87
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3D87#FFFFFF#000000##FFFFFF
##2B3D871.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A478A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b3d87;
/* rgb */ color: rgb(43, 61, 135);
/* oklch */ color: oklch(39.0% 0.125 269.5);
Tailwind
colors: {
  custom: {
    50: '#7072aa',
    500: '#2b3d87',
    950: '#000000',
  },
}
SCSS
$custom: #2b3d87;
$custom-light: #7072aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3d87",
  "rgb": {
    "r": 43,
    "g": 61,
    "b": 135
  },
  "hsl": {
    "h": 228.261,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38957,
    "c": 0.12546,
    "h": 269.5
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#2B3D87
secondary
#B2A15B
accent
#BF4DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2B3D87

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

Preview Lab → · Contrast checker → · Palette generator →

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