#2B417A#2B417A

#2B417A is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.101 H 266.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2B417A
RGBrgb(43, 65, 122)
HSLhsl(223, 48%, 32%)
HSVhsv(223, 65%, 48%)
CMYKcmyk(64.8%, 46.7%, 0%, 52.2%)
CIE-LABlab(28.64, 10.98, -35.13)
CIE-LCHlch(28.64, 36.81, 287.36°)
OKLaboklab(38.87% -0.007 -0.1003)
OKLCHoklch(38.87% 0.101 266)
XYZxyz(6.3982, 5.6988, 19.1714)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B417A #7A642B
analogous
#2B697A #2B417A #3C2B7A
triadic
#2B417A #7A2B41 #417A2B
tetradic
#2B417A #7A2B69 #7A642B #2B7A3C
square
#2B417A #7A2B69 #7A642B #2B7A3C
split-complementary
#2B417A #7A3C2B #697A2B
monochromatic
#0B111F #1B294D #2B417A #3B59A7 #5A78C5

Accessibility & contrast

On white

9.81
#2B417A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2B417A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B417A
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B417A#FFFFFF#000000##FFFFFF
##2B417A1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26477C
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2b417a;
/* rgb */ color: rgb(43, 65, 122);
/* oklch */ color: oklch(38.9% 0.101 266.0);
Tailwind
colors: {
  custom: {
    50: '#6d75a1',
    500: '#2b417a',
    950: '#000000',
  },
}
SCSS
$custom: #2b417a;
$custom-light: #6d75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b417a",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 223.291,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.10052,
    "h": 266
  },
  "luminance": 0.05699
}

Semantic roles & 50–950 ramp

primary
#2B417A
secondary
#AB9356
accent
#B250D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080F
muted
#7A7B7E

Preview Lab

Preview with #2B417A

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

Preview Lab → · Contrast checker → · Palette generator →

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