#2B3E87#2B3E87

#2B3E87 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.124 H 269.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2B3E87
RGBrgb(43, 62, 135)
HSLhsl(228, 52%, 35%)
HSVhsv(228, 68%, 53%)
CMYKcmyk(68.1%, 54.1%, 0%, 47.1%)
CIE-LABlab(28.66, 17.98, -43.21)
CIE-LCHlch(28.66, 46.80, 292.59°)
OKLaboklab(39.17% -0.0021 -0.1241)
OKLCHoklch(39.17% 0.124 269)
XYZxyz(7.0906, 5.7074, 23.6450)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3E87 #87742B
analogous
#2B6C87 #2B3E87 #462B87
triadic
#2B3E87 #872B3E #3E872B
tetradic
#2B3E87 #872B6C #87742B #2B8746
square
#2B3E87 #872B6C #87742B #2B8746
split-complementary
#2B3E87 #87462B #6C872B
monochromatic
#0D132A #1C2959 #2B3E87 #3A53B5 #6076CC

Accessibility & contrast

On white

9.81
#2B3E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2B3E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3E87
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3E87#FFFFFF#000000##FFFFFF
##2B3E871.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b3e87;
/* rgb */ color: rgb(43, 62, 135);
/* oklch */ color: oklch(39.2% 0.124 269.0);
Tailwind
colors: {
  custom: {
    50: '#7072aa',
    500: '#2b3e87',
    950: '#000000',
  },
}
SCSS
$custom: #2b3e87;
$custom-light: #7072aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3e87",
  "rgb": {
    "r": 43,
    "g": 62,
    "b": 135
  },
  "hsl": {
    "h": 227.609,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3917,
    "c": 0.12411,
    "h": 269
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#2B3E87
secondary
#B2A05B
accent
#BE4DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B3E87

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

Preview Lab → · Contrast checker → · Palette generator →

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