#2B417E#2B417E

#2B417E is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.107 H 266.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2B417E
RGBrgb(43, 65, 126)
HSLhsl(224, 49%, 33%)
HSVhsv(224, 66%, 49%)
CMYKcmyk(65.9%, 48.4%, 0%, 50.6%)
CIE-LABlab(28.90, 12.50, -37.22)
CIE-LCHlch(28.90, 39.26, 288.56°)
OKLaboklab(39.15% -0.0063 -0.1064)
OKLCHoklch(39.15% 0.107 266.6)
XYZxyz(6.6512, 5.7999, 20.5036)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B417E #7E682B
analogous
#2B6A7E #2B417E #3E2B7E
triadic
#2B417E #7E2B41 #417E2B
tetradic
#2B417E #7E2B6A #7E682B #2B7E3E
square
#2B417E #7E2B6A #7E682B #2B7E3E
split-complementary
#2B417E #7E3E2B #6A7E2B
monochromatic
#0C1223 #1B2950 #2B417E #3B59AC #5C78C7

Accessibility & contrast

On white

9.72
#2B417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B417E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B417E#FFFFFF#000000##FFFFFF
##2B417E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#14417D
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b417e;
/* rgb */ color: rgb(43, 65, 126);
/* oklch */ color: oklch(39.2% 0.107 266.6);
Tailwind
colors: {
  custom: {
    50: '#6d75a4',
    500: '#2b417e',
    950: '#000000',
  },
}
SCSS
$custom: #2b417e;
$custom-light: #6d75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b417e",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 224.096,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39151,
    "c": 0.1066,
    "h": 266.6
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#2B417E
secondary
#AD9758
accent
#B44FD9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2B417E

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

Preview Lab → · Contrast checker → · Palette generator →

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