#2B2B77#2B2B77

#2B2B77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.127 H 277.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#2B2B77
RGBrgb(43, 43, 119)
HSLhsl(240, 47%, 32%)
HSVhsv(240, 64%, 47%)
CMYKcmyk(63.9%, 63.9%, 0%, 53.3%)
CIE-LABlab(22.21, 25.00, -43.62)
CIE-LCHlch(22.21, 50.27, 299.81°)
OKLaboklab(33.96% 0.016 -0.1255)
OKLCHoklch(33.96% 0.127 277.3)
XYZxyz(5.1888, 3.5729, 17.8654)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B77 #77772B
analogous
#2B5177 #2B2B77 #512B77
triadic
#2B2B77 #772B2B #2B772B
tetradic
#2B2B77 #772B51 #77772B #2B7751
square
#2B2B77 #772B51 #77772B #2B7751
split-complementary
#2B2B77 #77512B #51772B
monochromatic
#0B0B1D #1B1B4A #2B2B77 #3B3BA4 #5959C3

Accessibility & contrast

On white

12.25
#2B2B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2B2B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B77
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B77#FFFFFF#000000##FFFFFF
##2B2B771.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b2b77;
/* rgb */ color: rgb(43, 43, 119);
/* oklch */ color: oklch(34.0% 0.127 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e649f',
    500: '#2b2b77',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b77;
$custom-light: #6e649f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b77",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 46.914,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33955,
    "c": 0.12653,
    "h": 277.3
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#2B2B77
secondary
#A9A955
accent
#D751D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2B2B77

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

Preview Lab → · Contrast checker → · Palette generator →

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