#2B408D#2B408D

#2B408D is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.130 H 268.4°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#2B408D
RGBrgb(43, 64, 141)
HSLhsl(227, 53%, 36%)
HSVhsv(227, 70%, 55%)
CMYKcmyk(69.5%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.67, 18.89, -45.29)
CIE-LCHlch(29.67, 49.07, 292.64°)
OKLaboklab(40.07% -0.0035 -0.1302)
OKLCHoklch(40.07% 0.13 268.4)
XYZxyz(7.6357, 6.1027, 25.9697)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B408D #8D782B
analogous
#2B718D #2B408D #472B8D
triadic
#2B408D #8D2B40 #408D2B
tetradic
#2B408D #8D2B71 #8D782B #2B8D47
square
#2B408D #8D2B71 #8D782B #2B8D47
split-complementary
#2B408D #8D472B #718D2B
monochromatic
#0E152F #1D2B5E #2B408D #3955BC #637ACF

Accessibility & contrast

On white

9.46
#2B408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2B408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B408D
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B408D#FFFFFF#000000##FFFFFF
##2B408D1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b408d;
/* rgb */ color: rgb(43, 64, 141);
/* oklch */ color: oklch(40.1% 0.130 268.4);
Tailwind
colors: {
  custom: {
    50: '#7174af',
    500: '#2b408d',
    950: '#000000',
  },
}
SCSS
$custom: #2b408d;
$custom-light: #7174af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b408d",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 227.143,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40072,
    "c": 0.13022,
    "h": 268.4
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#2B408D
secondary
#B6A35E
accent
#BD4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B408D

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

Preview Lab → · Contrast checker → · Palette generator →

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