#2A2579#2A2579

#2A2579 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.137 H 278.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2A2579
RGBrgb(42, 37, 121)
HSLhsl(244, 53%, 31%)
HSVhsv(244, 69%, 47%)
CMYKcmyk(65.3%, 69.4%, 0%, 52.5%)
CIE-LABlab(20.81, 29.51, -47.18)
CIE-LCHlch(20.81, 55.65, 302.03°)
OKLaboklab(32.97% 0.02 -0.136)
OKLCHoklch(32.97% 0.137 278.4)
XYZxyz(5.0665, 3.1955, 18.4352)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2579 #747925
analogous
#254A79 #2A2579 #542579
triadic
#2A2579 #792A25 #25792A
tetradic
#2A2579 #79254A #747925 #257954
square
#2A2579 #79254A #747925 #257954
split-complementary
#2A2579 #795425 #4A7925
monochromatic
#09081B #1A174A #2A2579 #3A33A8 #564FC9

Accessibility & contrast

On white

12.81
#2A2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2579
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2579#FFFFFF#000000##FFFFFF
##2A25791.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2579;
/* rgb */ color: rgb(42, 37, 121);
/* oklch */ color: oklch(33.0% 0.137 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e60a1',
    500: '#2a2579',
    950: '#000000',
  },
}
SCSS
$custom: #2a2579;
$custom-light: #6e60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2579",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 243.571,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32972,
    "c": 0.13747,
    "h": 278.4
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#2A2579
secondary
#A6AB4E
accent
#DD4BD4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2579

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

Preview Lab → · Contrast checker → · Palette generator →

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