#2B408F#2B408F

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

Color values

HEX#2B408F
RGBrgb(43, 64, 143)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 56%)
CMYKcmyk(69.9%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.82, 19.65, -46.28)
CIE-LCHlch(29.82, 50.28, 293.01°)
OKLaboklab(40.23% -0.0034 -0.1331)
OKLCHoklch(40.23% 0.133 268.5)
XYZxyz(7.7859, 6.1628, 26.7605)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B408F #8F7A2B
analogous
#2B728F #2B408F #482B8F
triadic
#2B408F #8F2B40 #408F2B
tetradic
#2B408F #8F2B72 #8F7A2B #2B8F48
square
#2B408F #8F2B72 #8F7A2B #2B8F48
split-complementary
#2B408F #8F482B #728F2B
monochromatic
#0F1631 #1D2B60 #2B408F #3955BE #647BD0

Accessibility & contrast

On white

9.41
#2B408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B408F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B408F#FFFFFF#000000##FFFFFF
##2B408F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054B92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b408f;
/* rgb */ color: rgb(43, 64, 143);
/* oklch */ color: oklch(40.2% 0.133 268.5);
Tailwind
colors: {
  custom: {
    50: '#7174b0',
    500: '#2b408f',
    950: '#000000',
  },
}
SCSS
$custom: #2b408f;
$custom-light: #7174b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b408f",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 227.4,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40232,
    "c": 0.13312,
    "h": 268.5
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#2B408F
secondary
#B7A45F
accent
#BE4BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2B408F

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

Preview Lab → · Contrast checker → · Palette generator →

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