#2B2D71#2B2D71

#2B2D71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.115 H 277.1°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2B2D71
RGBrgb(43, 45, 113)
HSLhsl(238, 45%, 31%)
HSVhsv(238, 62%, 44%)
CMYKcmyk(61.9%, 60.2%, 0%, 55.7%)
CIE-LABlab(22.24, 21.45, -39.72)
CIE-LCHlch(22.24, 45.14, 298.36°)
OKLaboklab(33.82% 0.0141 -0.114)
OKLCHoklch(33.82% 0.115 277.1)
XYZxyz(4.9143, 3.5823, 16.0521)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2D71 #716F2B
analogous
#2B5071 #2B2D71 #4C2B71
triadic
#2B2D71 #712B2D #2D712B
tetradic
#2B2D71 #712B50 #716F2B #2B714C
square
#2B2D71 #712B50 #716F2B #2B714C
split-complementary
#2B2D71 #714C2B #50712B
monochromatic
#090A18 #1A1B45 #2B2D71 #3C3F9D #575ABF

Accessibility & contrast

On white

12.23
#2B2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2B2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2D71
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2D71#FFFFFF#000000##FFFFFF
##2B2D711.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2d71;
/* rgb */ color: rgb(43, 45, 113);
/* oklch */ color: oklch(33.8% 0.115 277.1);
Tailwind
colors: {
  custom: {
    50: '#6c669a',
    500: '#2b2d71',
    950: '#000000',
  },
}
SCSS
$custom: #2b2d71;
$custom-light: #6c669a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2d71",
  "rgb": {
    "r": 43,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 238.286,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33823,
    "c": 0.11491,
    "h": 277.1
  },
  "luminance": 0.03583
}

Semantic roles & 50–950 ramp

primary
#2B2D71
secondary
#A3A155
accent
#D153D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2B2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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