#2B2C78#2B2C78

#2B2C78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.127 H 276.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2B2C78
RGBrgb(43, 44, 120)
HSLhsl(239, 47%, 32%)
HSVhsv(239, 64%, 47%)
CMYKcmyk(64.2%, 63.3%, 0%, 52.9%)
CIE-LABlab(22.55, 24.68, -43.69)
CIE-LCHlch(22.55, 50.19, 299.46°)
OKLaboklab(34.24% 0.015 -0.1257)
OKLCHoklch(34.24% 0.127 276.8)
XYZxyz(5.2860, 3.6706, 18.1956)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2C78 #78772B
analogous
#2B5378 #2B2C78 #512B78
triadic
#2B2C78 #782B2C #2C782B
tetradic
#2B2C78 #782B53 #78772B #2B7851
square
#2B2C78 #782B53 #78772B #2B7851
split-complementary
#2B2C78 #78512B #53782B
monochromatic
#0B0B1E #1B1B4B #2B2C78 #3B3DA5 #5A5BC4

Accessibility & contrast

On white

12.11
#2B2C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2C78
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2C78#FFFFFF#000000##FFFFFF
##2B2C781.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2c78;
/* rgb */ color: rgb(43, 44, 120);
/* oklch */ color: oklch(34.2% 0.127 276.8);
Tailwind
colors: {
  custom: {
    50: '#6e65a0',
    500: '#2b2c78',
    950: '#000000',
  },
}
SCSS
$custom: #2b2c78;
$custom-light: #6e65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2c78",
  "rgb": {
    "r": 43,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 239.221,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34236,
    "c": 0.12661,
    "h": 276.8
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#2B2C78
secondary
#AAA855
accent
#D551D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #2B2C78

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

Preview Lab → · Contrast checker → · Palette generator →

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