#2B478B#2B478B

#2B478B is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.118 H 264.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2B478B
RGBrgb(43, 71, 139)
HSLhsl(223, 53%, 36%)
HSVhsv(223, 69%, 55%)
CMYKcmyk(69.1%, 48.9%, 0%, 45.5%)
CIE-LABlab(31.54, 13.37, -41.04)
CIE-LCHlch(31.54, 43.17, 288.04°)
OKLaboklab(41.45% -0.0105 -0.1176)
OKLCHoklch(41.45% 0.118 264.9)
XYZxyz(7.9081, 6.8834, 25.3330)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B478B #8B6F2B
analogous
#2B778B #2B478B #3F2B8B
triadic
#2B478B #8B2B47 #478B2B
tetradic
#2B478B #8B2B77 #8B6F2B #2B8B3F
square
#2B478B #8B2B77 #8B6F2B #2B8B3F
split-complementary
#2B478B #8B3F2B #778B2B
monochromatic
#0E172E #1D2F5C #2B478B #395FBA #6282CE

Accessibility & contrast

On white

8.84
#2B478B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2B478B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B478B
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B478B#FFFFFF#000000##FFFFFF
##2B478B1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8E
Deuteranopia (green-blind)
#0E468A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b478b;
/* rgb */ color: rgb(43, 71, 139);
/* oklch */ color: oklch(41.4% 0.118 264.9);
Tailwind
colors: {
  custom: {
    50: '#7079ad',
    500: '#2b478b',
    950: '#000000',
  },
}
SCSS
$custom: #2b478b;
$custom-light: #7079ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b478b",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 139
  },
  "hsl": {
    "h": 222.5,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41448,
    "c": 0.11804,
    "h": 264.9
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#2B478B
secondary
#B59B5D
accent
#B24CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2B478B

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

Preview Lab → · Contrast checker → · Palette generator →

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