#2B417D#2B417D

#2B417D is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.105 H 266.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2B417D
RGBrgb(43, 65, 125)
HSLhsl(224, 49%, 33%)
HSVhsv(224, 66%, 49%)
CMYKcmyk(65.6%, 48%, 0%, 51%)
CIE-LABlab(28.84, 12.12, -36.70)
CIE-LCHlch(28.84, 38.65, 288.28°)
OKLaboklab(39.08% -0.0065 -0.1049)
OKLCHoklch(39.08% 0.105 266.5)
XYZxyz(6.5870, 5.7743, 20.1655)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B417D #7D672B
analogous
#2B6A7D #2B417D #3E2B7D
triadic
#2B417D #7D2B41 #417D2B
tetradic
#2B417D #7D2B6A #7D672B #2B7D3E
square
#2B417D #7D2B6A #7D672B #2B7D3E
split-complementary
#2B417D #7D3E2B #6A7D2B
monochromatic
#0C1222 #1B294F #2B417D #3B59AB #5C78C7

Accessibility & contrast

On white

9.74
#2B417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2B417D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B417D
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B417D#FFFFFF#000000##FFFFFF
##2B417D1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#15407C
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b417d;
/* rgb */ color: rgb(43, 65, 125);
/* oklch */ color: oklch(39.1% 0.105 266.5);
Tailwind
colors: {
  custom: {
    50: '#6d75a3',
    500: '#2b417d',
    950: '#000000',
  },
}
SCSS
$custom: #2b417d;
$custom-light: #6d75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b417d",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 223.902,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39079,
    "c": 0.10509,
    "h": 266.5
  },
  "luminance": 0.05775
}

Semantic roles & 50–950 ramp

primary
#2B417D
secondary
#AD9657
accent
#B44FD8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2B417D

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

Preview Lab → · Contrast checker → · Palette generator →

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