#2B408C#2B408C

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

Color values

HEX#2B408C
RGBrgb(43, 64, 140)
HSLhsl(227, 53%, 36%)
HSVhsv(227, 69%, 55%)
CMYKcmyk(69.3%, 54.3%, 0%, 45.1%)
CIE-LABlab(29.60, 18.51, -44.79)
CIE-LCHlch(29.60, 48.47, 292.45°)
OKLaboklab(39.99% -0.0036 -0.1287)
OKLCHoklch(39.99% 0.129 268.4)
XYZxyz(7.5617, 6.0731, 25.5796)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B408C #8C772B
analogous
#2B708C #2B408C #462B8C
triadic
#2B408C #8C2B40 #408C2B
tetradic
#2B408C #8C2B70 #8C772B #2B8C46
square
#2B408C #8C2B70 #8C772B #2B8C46
split-complementary
#2B408C #8C462B #708C2B
monochromatic
#0E152E #1D2B5D #2B408C #3955BB #627ACF

Accessibility & contrast

On white

9.48
#2B408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B408C
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B408C#FFFFFF#000000##FFFFFF
##2B408C1.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b408c;
/* rgb */ color: rgb(43, 64, 140);
/* oklch */ color: oklch(40.0% 0.129 268.4);
Tailwind
colors: {
  custom: {
    50: '#7074ae',
    500: '#2b408c',
    950: '#000000',
  },
}
SCSS
$custom: #2b408c;
$custom-light: #7074ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b408c",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 227.01,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39993,
    "c": 0.12876,
    "h": 268.4
  },
  "luminance": 0.06074
}

Semantic roles & 50–950 ramp

primary
#2B408C
secondary
#B5A25E
accent
#BD4BDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B408C

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

Preview Lab → · Contrast checker → · Palette generator →

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