#2A2B78#2A2B78

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

Color values

HEX#2A2B78
RGBrgb(42, 43, 120)
HSLhsl(239, 48%, 32%)
HSVhsv(239, 65%, 47%)
CMYKcmyk(65%, 64.2%, 0%, 52.9%)
CIE-LABlab(22.22, 25.18, -44.24)
CIE-LCHlch(22.22, 50.91, 299.65°)
OKLaboklab(33.97% 0.0147 -0.1274)
OKLCHoklch(33.97% 0.128 276.6)
XYZxyz(5.2078, 3.5756, 18.1814)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B78 #78772A
analogous
#2A5278 #2A2B78 #502A78
triadic
#2A2B78 #782A2B #2B782A
tetradic
#2A2B78 #782A52 #78772A #2A7850
square
#2A2B78 #782A52 #78772A #2A7850
split-complementary
#2A2B78 #78502A #52782A
monochromatic
#0A0B1D #1A1B4B #2A2B78 #3A3BA5 #5859C5

Accessibility & contrast

On white

12.24
#2A2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2B78
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B78#FFFFFF#000000##FFFFFF
##2A2B781.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2b78;
/* rgb */ color: rgb(42, 43, 120);
/* oklch */ color: oklch(34.0% 0.128 276.6);
Tailwind
colors: {
  custom: {
    50: '#6d64a0',
    500: '#2a2b78',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b78;
$custom-light: #6d64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b78",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 239.231,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.12821,
    "h": 276.6
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#2A2B78
secondary
#AAA954
accent
#D650D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #2A2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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