#2B478C#2B478C

#2B478C is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.120 H 265.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#2B478C
RGBrgb(43, 71, 140)
HSLhsl(223, 53%, 36%)
HSVhsv(223, 69%, 55%)
CMYKcmyk(69.3%, 49.3%, 0%, 45.1%)
CIE-LABlab(31.61, 13.75, -41.55)
CIE-LCHlch(31.61, 43.77, 288.31°)
OKLaboklab(41.52% -0.0104 -0.1191)
OKLCHoklch(41.52% 0.12 265)
XYZxyz(7.9815, 6.9127, 25.7195)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B478C #8C702B
analogous
#2B778C #2B478C #3F2B8C
triadic
#2B478C #8C2B47 #478C2B
tetradic
#2B478C #8C2B77 #8C702B #2B8C3F
square
#2B478C #8C2B77 #8C702B #2B8C3F
split-complementary
#2B478C #8C3F2B #778C2B
monochromatic
#0E182E #1D2F5D #2B478C #395FBB #6282CF

Accessibility & contrast

On white

8.81
#2B478C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B478C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B478C#FFFFFF#000000##FFFFFF
##2B478C1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8F
Deuteranopia (green-blind)
#0B468B
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b478c;
/* rgb */ color: rgb(43, 71, 140);
/* oklch */ color: oklch(41.5% 0.120 265.0);
Tailwind
colors: {
  custom: {
    50: '#7079ae',
    500: '#2b478c',
    950: '#000000',
  },
}
SCSS
$custom: #2b478c;
$custom-light: #7079ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b478c",
  "rgb": {
    "r": 43,
    "g": 71,
    "b": 140
  },
  "hsl": {
    "h": 222.68,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41521,
    "c": 0.11951,
    "h": 265
  },
  "luminance": 0.06914
}

Semantic roles & 50–950 ramp

primary
#2B478C
secondary
#B59C5E
accent
#B34BDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2B478C

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

Preview Lab → · Contrast checker → · Palette generator →

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