#2B478E#2B478E

#2B478E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.122 H 265.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#2B478E
RGBrgb(43, 71, 142)
HSLhsl(223, 54%, 36%)
HSVhsv(223, 70%, 56%)
CMYKcmyk(69.7%, 50%, 0%, 44.3%)
CIE-LABlab(31.74, 14.51, -42.56)
CIE-LCHlch(31.74, 44.97, 288.83°)
OKLaboklab(41.67% -0.0101 -0.122)
OKLCHoklch(41.67% 0.122 265.3)
XYZxyz(8.1303, 6.9723, 26.5033)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B478E #8E722B
analogous
#2B798E #2B478E #412B8E
triadic
#2B478E #8E2B47 #478E2B
tetradic
#2B478E #8E2B79 #8E722B #2B8E41
square
#2B478E #8E2B79 #8E722B #2B8E41
split-complementary
#2B478E #8E412B #798E2B
monochromatic
#0F1830 #1D305F #2B478E #395EBD #6382D0

Accessibility & contrast

On white

8.77
#2B478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B478E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B478E#FFFFFF#000000##FFFFFF
##2B478E1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F91
Deuteranopia (green-blind)
#05468D
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b478e;
/* rgb */ color: rgb(43, 71, 142);
/* oklch */ color: oklch(41.7% 0.122 265.3);
Tailwind
colors: {
  custom: {
    50: '#7179af',
    500: '#2b478e',
    950: '#000000',
  },
}
SCSS
$custom: #2b478e;
$custom-light: #7179af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b478e",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 223.03,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41669,
    "c": 0.12245,
    "h": 265.3
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

primary
#2B478E
secondary
#B69D5F
accent
#B44BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2B478E

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

Preview Lab → · Contrast checker → · Palette generator →

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