#2B3971#2B3971

#2B3971 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.098 H 270.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2B3971
RGBrgb(43, 57, 113)
HSLhsl(228, 45%, 31%)
HSVhsv(228, 62%, 44%)
CMYKcmyk(61.9%, 49.6%, 0%, 55.7%)
CIE-LABlab(25.66, 13.11, -34.21)
CIE-LCHlch(25.66, 36.64, 290.97°)
OKLaboklab(36.4% 0.0006 -0.0977)
OKLCHoklch(36.4% 0.098 270.4)
XYZxyz(5.4390, 4.6317, 16.2270)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3971 #71632B
analogous
#2B5C71 #2B3971 #402B71
triadic
#2B3971 #712B39 #39712B
tetradic
#2B3971 #712B5C #71632B #2B7140
square
#2B3971 #712B5C #71632B #2B7140
split-complementary
#2B3971 #71402B #5C712B
monochromatic
#090C18 #1A2345 #2B3971 #3C4F9D #576CBF

Accessibility & contrast

On white

10.90
#2B3971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B3971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3971
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3971#FFFFFF#000000##FFFFFF
##2B39711.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#133A70
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b3971;
/* rgb */ color: rgb(43, 57, 113);
/* oklch */ color: oklch(36.4% 0.098 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b6f9a',
    500: '#2b3971',
    950: '#000000',
  },
}
SCSS
$custom: #2b3971;
$custom-light: #6b6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3971",
  "rgb": {
    "r": 43,
    "g": 57,
    "b": 113
  },
  "hsl": {
    "h": 228,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36396,
    "c": 0.09768,
    "h": 270.4
  },
  "luminance": 0.04632
}

Semantic roles & 50–950 ramp

primary
#2B3971
secondary
#A39355
accent
#BB53D5
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2B3971

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

Preview Lab → · Contrast checker → · Palette generator →

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