#2A2879#2A2879

#2A2879 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.134 H 277.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2A2879
RGBrgb(42, 40, 121)
HSLhsl(241, 50%, 32%)
HSVhsv(241, 67%, 47%)
CMYKcmyk(65.3%, 66.9%, 0%, 52.5%)
CIE-LABlab(21.54, 27.55, -45.98)
CIE-LCHlch(21.54, 53.60, 300.93°)
OKLaboklab(33.5% 0.0174 -0.1325)
OKLCHoklch(33.5% 0.134 277.5)
XYZxyz(5.1637, 3.3899, 18.4677)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2879 #777928
analogous
#284F79 #2A2879 #532879
triadic
#2A2879 #792A28 #28792A
tetradic
#2A2879 #79284F #777928 #287953
square
#2A2879 #79284F #777928 #287953
split-complementary
#2A2879 #795328 #4F7928
monochromatic
#0A0A1D #1A194B #2A2879 #3A37A7 #5855C7

Accessibility & contrast

On white

12.51
#2A2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A2879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2879
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2879#FFFFFF#000000##FFFFFF
##2A28791.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2879;
/* rgb */ color: rgb(42, 40, 121);
/* oklch */ color: oklch(33.5% 0.134 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e62a0',
    500: '#2a2879',
    950: '#000000',
  },
}
SCSS
$custom: #2a2879;
$custom-light: #6e62a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2879",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 241.481,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33504,
    "c": 0.13362,
    "h": 277.5
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#2A2879
secondary
#A9AB52
accent
#DA4ED6
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2879

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

Preview Lab → · Contrast checker → · Palette generator →

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