#2B408E#2B408E

#2B408E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.132 H 268.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#2B408E
RGBrgb(43, 64, 142)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 56%)
CMYKcmyk(69.7%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.74, 19.27, -45.79)
CIE-LCHlch(29.74, 49.68, 292.83°)
OKLaboklab(40.15% -0.0035 -0.1316)
OKLCHoklch(40.15% 0.132 268.5)
XYZxyz(7.7105, 6.1326, 26.3633)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B408E #8E792B
analogous
#2B728E #2B408E #482B8E
triadic
#2B408E #8E2B40 #408E2B
tetradic
#2B408E #8E2B72 #8E792B #2B8E48
square
#2B408E #8E2B72 #8E792B #2B8E48
split-complementary
#2B408E #8E482B #728E2B
monochromatic
#0F1630 #1D2B5F #2B408E #3955BD #637AD0

Accessibility & contrast

On white

9.43
#2B408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2B408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B408E
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B408E#FFFFFF#000000##FFFFFF
##2B408E1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b408e;
/* rgb */ color: rgb(43, 64, 142);
/* oklch */ color: oklch(40.2% 0.132 268.5);
Tailwind
colors: {
  custom: {
    50: '#7174b0',
    500: '#2b408e',
    950: '#000000',
  },
}
SCSS
$custom: #2b408e;
$custom-light: #7174b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b408e",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 227.273,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40152,
    "c": 0.13168,
    "h": 268.5
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#2B408E
secondary
#B6A45F
accent
#BE4BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B408E

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

Preview Lab → · Contrast checker → · Palette generator →

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