#2B3271#2B3271

#2B3271 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.108 H 274.6°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2B3271
RGBrgb(43, 50, 113)
HSLhsl(234, 45%, 31%)
HSVhsv(234, 62%, 44%)
CMYKcmyk(61.9%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.63, 17.98, -37.48)
CIE-LCHlch(23.63, 41.57, 295.63°)
OKLaboklab(34.86% 0.0086 -0.1074)
OKLCHoklch(34.86% 0.108 274.6)
XYZxyz(5.1165, 3.9867, 16.1195)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3271 #716A2B
analogous
#2B5571 #2B3271 #472B71
triadic
#2B3271 #712B32 #32712B
tetradic
#2B3271 #712B55 #716A2B #2B7147
square
#2B3271 #712B55 #716A2B #2B7147
split-complementary
#2B3271 #71472B #55712B
monochromatic
#090B18 #1A1E45 #2B3271 #3C469D #5762BF

Accessibility & contrast

On white

11.68
#2B3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3271
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3271#FFFFFF#000000##FFFFFF
##2B32711.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b3271;
/* rgb */ color: rgb(43, 50, 113);
/* oklch */ color: oklch(34.9% 0.108 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c699a',
    500: '#2b3271',
    950: '#000000',
  },
}
SCSS
$custom: #2b3271;
$custom-light: #6c699a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3271",
  "rgb": {
    "r": 43,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 234,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3486,
    "c": 0.10773,
    "h": 274.6
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#2B3271
secondary
#A39B55
accent
#C853D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2B3271

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

Preview Lab → · Contrast checker → · Palette generator →

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