#2B4271#2B4271

#2B4271 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.085 H 263.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#2B4271
RGBrgb(43, 66, 113)
HSLhsl(220, 45%, 31%)
HSVhsv(220, 62%, 44%)
CMYKcmyk(61.9%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.38, 6.93, -29.86)
CIE-LCHlch(28.38, 30.66, 283.06°)
OKLaboklab(38.49% -0.01 -0.0848)
OKLCHoklch(38.49% 0.085 263.2)
XYZxyz(5.9241, 5.6018, 16.3886)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B4271 #715A2B
analogous
#2B6571 #2B4271 #372B71
triadic
#2B4271 #712B42 #42712B
tetradic
#2B4271 #712B65 #715A2B #2B7137
square
#2B4271 #712B65 #715A2B #2B7137
split-complementary
#2B4271 #71372B #65712B
monochromatic
#090E18 #1A2845 #2B4271 #3C5C9D #5779BF

Accessibility & contrast

On white

9.90
#2B4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2B4271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B4271
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B4271#FFFFFF#000000##FFFFFF
##2B42711.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4673
Deuteranopia (green-blind)
#254070
Tritanopia (blue-blind)
#004C54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2b4271;
/* rgb */ color: rgb(43, 66, 113);
/* oklch */ color: oklch(38.5% 0.085 263.2);
Tailwind
colors: {
  custom: {
    50: '#6b769a',
    500: '#2b4271',
    950: '#000000',
  },
}
SCSS
$custom: #2b4271;
$custom-light: #6b769a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b4271",
  "rgb": {
    "r": 43,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 220.286,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38488,
    "c": 0.0854,
    "h": 263.2
  },
  "luminance": 0.05602
}

Semantic roles & 50–950 ramp

primary
#2B4271
secondary
#A38955
accent
#AA53D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2B4271

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

Preview Lab → · Contrast checker → · Palette generator →

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