#2B2E71#2B2E71

#2B2E71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.113 H 276.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2B2E71
RGBrgb(43, 46, 113)
HSLhsl(237, 45%, 31%)
HSVhsv(237, 62%, 44%)
CMYKcmyk(61.9%, 59.3%, 0%, 55.7%)
CIE-LABlab(22.51, 20.76, -39.28)
CIE-LCHlch(22.51, 44.43, 297.85°)
OKLaboklab(34.03% 0.013 -0.1127)
OKLCHoklch(34.03% 0.113 276.6)
XYZxyz(4.9529, 3.6595, 16.0649)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2E71 #716E2B
analogous
#2B5171 #2B2E71 #4B2B71
triadic
#2B2E71 #712B2E #2E712B
tetradic
#2B2E71 #712B51 #716E2B #2B714B
square
#2B2E71 #712B51 #716E2B #2B714B
split-complementary
#2B2E71 #714B2B #51712B
monochromatic
#090A18 #1A1C45 #2B2E71 #3C409D #575CBF

Accessibility & contrast

On white

12.12
#2B2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2E71
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2E71#FFFFFF#000000##FFFFFF
##2B2E711.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2e71;
/* rgb */ color: rgb(43, 46, 113);
/* oklch */ color: oklch(34.0% 0.113 276.6);
Tailwind
colors: {
  custom: {
    50: '#6c669a',
    500: '#2b2e71',
    950: '#000000',
  },
}
SCSS
$custom: #2b2e71;
$custom-light: #6c669a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2e71",
  "rgb": {
    "r": 43,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 237.429,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34026,
    "c": 0.11348,
    "h": 276.6
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#2B2E71
secondary
#A39F55
accent
#CF53D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2B2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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