#2B4978#2B4978

#2B4978 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.6% C 0.087 H 259.1°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2B4978
RGBrgb(43, 73, 120)
HSLhsl(217, 47%, 32%)
HSVhsv(217, 64%, 47%)
CMYKcmyk(64.2%, 39.2%, 0%, 52.9%)
CIE-LABlab(30.96, 4.83, -30.19)
CIE-LCHlch(30.96, 30.57, 279.09°)
OKLaboklab(40.62% -0.0166 -0.0857)
OKLCHoklch(40.62% 0.087 259.1)
XYZxyz(6.7678, 6.6341, 18.6895)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4978 #785A2B
analogous
#2B7078 #2B4978 #342B78
triadic
#2B4978 #782B49 #49782B
tetradic
#2B4978 #782B70 #785A2B #2B7834
square
#2B4978 #782B70 #785A2B #2B7834
split-complementary
#2B4978 #78342B #70782B
monochromatic
#0B121E #1B2E4B #2B4978 #3B64A5 #5A83C4

Accessibility & contrast

On white

9.02
#2B4978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2B4978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4978
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4978#FFFFFF#000000##FFFFFF
##2B49781.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354D7A
Deuteranopia (green-blind)
#2A4677
Tritanopia (blue-blind)
#00545A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b4978;
/* rgb */ color: rgb(43, 73, 120);
/* oklch */ color: oklch(40.6% 0.087 259.1);
Tailwind
colors: {
  custom: {
    50: '#6c7b9f',
    500: '#2b4978',
    950: '#000000',
  },
}
SCSS
$custom: #2b4978;
$custom-light: #6c7b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4978",
  "rgb": {
    "r": 43,
    "g": 73,
    "b": 120
  },
  "hsl": {
    "h": 216.623,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.40617,
    "c": 0.08726,
    "h": 259.1
  },
  "luminance": 0.06635
}

Semantic roles & 50–950 ramp

primary
#2B4978
secondary
#AA8955
accent
#A351D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2B4978

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

Preview Lab → · Contrast checker → · Palette generator →

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