#2B478F#2B478F

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

Color values

HEX#2B478F
RGBrgb(43, 71, 143)
HSLhsl(223, 54%, 36%)
HSVhsv(223, 70%, 56%)
CMYKcmyk(69.9%, 50.3%, 0%, 43.9%)
CIE-LABlab(31.81, 14.90, -43.06)
CIE-LCHlch(31.81, 45.56, 289.08°)
OKLaboklab(41.74% -0.01 -0.1235)
OKLCHoklch(41.74% 0.124 265.4)
XYZxyz(8.2057, 7.0024, 26.9004)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B478F #8F732B
analogous
#2B798F #2B478F #412B8F
triadic
#2B478F #8F2B47 #478F2B
tetradic
#2B478F #8F2B79 #8F732B #2B8F41
square
#2B478F #8F2B79 #8F732B #2B8F41
split-complementary
#2B478F #8F412B #798F2B
monochromatic
#0F1831 #1D3060 #2B478F #395EBE #6482D0

Accessibility & contrast

On white

8.75
#2B478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2B478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B478F
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B478F#FFFFFF#000000##FFFFFF
##2B478F1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5092
Deuteranopia (green-blind)
#02478E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b478f;
/* rgb */ color: rgb(43, 71, 143);
/* oklch */ color: oklch(41.7% 0.124 265.4);
Tailwind
colors: {
  custom: {
    50: '#7179b0',
    500: '#2b478f',
    950: '#000000',
  },
}
SCSS
$custom: #2b478f;
$custom-light: #7179b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b478f",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 223.2,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41743,
    "c": 0.1239,
    "h": 265.4
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B478F

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

Preview Lab → · Contrast checker → · Palette generator →

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