#2B408B#2B408B

#2B408B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.127 H 268.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2B408B
RGBrgb(43, 64, 139)
HSLhsl(227, 53%, 36%)
HSVhsv(227, 69%, 55%)
CMYKcmyk(69.1%, 54%, 0%, 45.5%)
CIE-LABlab(29.52, 18.13, -44.30)
CIE-LCHlch(29.52, 47.86, 292.26°)
OKLaboklab(39.91% -0.0037 -0.1272)
OKLCHoklch(39.91% 0.127 268.3)
XYZxyz(7.4883, 6.0437, 25.1930)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B408B #8B762B
analogous
#2B708B #2B408B #462B8B
triadic
#2B408B #8B2B40 #408B2B
tetradic
#2B408B #8B2B70 #8B762B #2B8B46
square
#2B408B #8B2B70 #8B762B #2B8B46
split-complementary
#2B408B #8B462B #708B2B
monochromatic
#0E152E #1D2A5C #2B408B #3956BA #627ACE

Accessibility & contrast

On white

9.51
#2B408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2B408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B408B
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B408B#FFFFFF#000000##FFFFFF
##2B408B1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b408b;
/* rgb */ color: rgb(43, 64, 139);
/* oklch */ color: oklch(39.9% 0.127 268.3);
Tailwind
colors: {
  custom: {
    50: '#7074ad',
    500: '#2b408b',
    950: '#000000',
  },
}
SCSS
$custom: #2b408b;
$custom-light: #7074ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b408b",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 226.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39914,
    "c": 0.1273,
    "h": 268.3
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#2B408B
secondary
#B5A15D
accent
#BD4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B408B

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

Preview Lab → · Contrast checker → · Palette generator →

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