#2B3872#2B3872

#2B3872 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.101 H 271.1°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2B3872
RGBrgb(43, 56, 114)
HSLhsl(229, 45%, 31%)
HSVhsv(229, 62%, 45%)
CMYKcmyk(62.3%, 50.9%, 0%, 55.3%)
CIE-LABlab(25.43, 14.18, -35.21)
CIE-LCHlch(25.43, 37.96, 291.94°)
OKLaboklab(36.24% 0.0019 -0.1006)
OKLCHoklch(36.24% 0.101 271.1)
XYZxyz(5.4467, 4.5564, 16.5088)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3872 #72652B
analogous
#2B5B72 #2B3872 #412B72
triadic
#2B3872 #722B38 #38722B
tetradic
#2B3872 #722B5B #72652B #2B7241
square
#2B3872 #722B5B #72652B #2B7241
split-complementary
#2B3872 #72412B #5B722B
monochromatic
#090C19 #1A2246 #2B3872 #3C4E9E #586BC0

Accessibility & contrast

On white

10.99
#2B3872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B3872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3872
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3872#FFFFFF#000000##FFFFFF
##2B38721.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4074
Deuteranopia (green-blind)
#0E3971
Tritanopia (blue-blind)
#00454F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b3872;
/* rgb */ color: rgb(43, 56, 114);
/* oklch */ color: oklch(36.2% 0.101 271.1);
Tailwind
colors: {
  custom: {
    50: '#6c6e9b',
    500: '#2b3872',
    950: '#000000',
  },
}
SCSS
$custom: #2b3872;
$custom-light: #6c6e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3872",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 229.014,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36245,
    "c": 0.10066,
    "h": 271.1
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#2B3872
secondary
#A49555
accent
#BD53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2B3872

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

Preview Lab → · Contrast checker → · Palette generator →

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