#2B478D#2B478D

#2B478D is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.121 H 265.1°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2B478D
RGBrgb(43, 71, 141)
HSLhsl(223, 53%, 36%)
HSVhsv(223, 70%, 55%)
CMYKcmyk(69.5%, 49.6%, 0%, 44.7%)
CIE-LABlab(31.68, 14.13, -42.05)
CIE-LCHlch(31.68, 44.37, 288.57°)
OKLaboklab(41.6% -0.0102 -0.1205)
OKLCHoklch(41.6% 0.121 265.1)
XYZxyz(8.0555, 6.9424, 26.1096)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B478D #8D712B
analogous
#2B788D #2B478D #402B8D
triadic
#2B478D #8D2B47 #478D2B
tetradic
#2B478D #8D2B78 #8D712B #2B8D40
square
#2B478D #8D2B78 #8D712B #2B8D40
split-complementary
#2B478D #8D402B #788D2B
monochromatic
#0E182F #1D2F5E #2B478D #395FBC #6382CF

Accessibility & contrast

On white

8.79
#2B478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2B478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B478D
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B478D#FFFFFF#000000##FFFFFF
##2B478D1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F90
Deuteranopia (green-blind)
#08468C
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b478d;
/* rgb */ color: rgb(43, 71, 141);
/* oklch */ color: oklch(41.6% 0.121 265.1);
Tailwind
colors: {
  custom: {
    50: '#7079af',
    500: '#2b478d',
    950: '#000000',
  },
}
SCSS
$custom: #2b478d;
$custom-light: #7079af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b478d",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 222.857,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41595,
    "c": 0.12097,
    "h": 265.1
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#2B478D
secondary
#B69D5E
accent
#B34BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2B478D

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

Preview Lab → · Contrast checker → · Palette generator →

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