#2B2B71#2B2B71

#2B2B71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.118 H 277.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2B2B71
RGBrgb(43, 43, 113)
HSLhsl(240, 45%, 31%)
HSVhsv(240, 62%, 44%)
CMYKcmyk(61.9%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.70, 22.82, -40.60)
CIE-LCHlch(21.70, 46.57, 299.34°)
OKLaboklab(33.42% 0.0162 -0.1166)
OKLCHoklch(33.42% 0.118 277.9)
XYZxyz(4.8398, 3.4332, 16.0272)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B71 #71712B
analogous
#2B4E71 #2B2B71 #4E2B71
triadic
#2B2B71 #712B2B #2B712B
tetradic
#2B2B71 #712B4E #71712B #2B714E
square
#2B2B71 #712B4E #71712B #2B714E
split-complementary
#2B2B71 #714E2B #4E712B
monochromatic
#090918 #1A1A45 #2B2B71 #3C3C9D #5757BF

Accessibility & contrast

On white

12.45
#2B2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2B2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B71
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B71#FFFFFF#000000##FFFFFF
##2B2B711.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b2b71;
/* rgb */ color: rgb(43, 43, 113);
/* oklch */ color: oklch(33.4% 0.118 277.9);
Tailwind
colors: {
  custom: {
    50: '#6c649a',
    500: '#2b2b71',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b71;
$custom-light: #6c649a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b71",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33425,
    "c": 0.11775,
    "h": 277.9
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#2B2B71
secondary
#A3A355
accent
#D553D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2B2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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