#2A2379#2A2379

#2A2379 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.140 H 278.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2A2379
RGBrgb(42, 35, 121)
HSLhsl(245, 55%, 31%)
HSVhsv(245, 71%, 47%)
CMYKcmyk(65.3%, 71.1%, 0%, 52.5%)
CIE-LABlab(20.34, 30.79, -47.95)
CIE-LCHlch(20.34, 56.98, 302.70°)
OKLaboklab(32.63% 0.0217 -0.1383)
OKLCHoklch(32.63% 0.14 278.9)
XYZxyz(5.0060, 3.0744, 18.4151)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2379 #727923
analogous
#234779 #2A2379 #552379
triadic
#2A2379 #792A23 #23792A
tetradic
#2A2379 #792347 #727923 #237955
square
#2A2379 #792347 #727923 #237955
split-complementary
#2A2379 #795523 #477923
monochromatic
#09081A #1A154A #2A2379 #3A31A8 #564BCB

Accessibility & contrast

On white

13.00
#2A2379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A2379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2379
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2379#FFFFFF#000000##FFFFFF
##2A23791.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a2379;
/* rgb */ color: rgb(42, 35, 121);
/* oklch */ color: oklch(32.6% 0.140 278.9);
Tailwind
colors: {
  custom: {
    50: '#6e5fa1',
    500: '#2a2379',
    950: '#000000',
  },
}
SCSS
$custom: #2a2379;
$custom-light: #6e5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2379",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 244.884,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32633,
    "c": 0.13996,
    "h": 278.9
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#2A2379
secondary
#A4AC4C
accent
#DE49D2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A2379

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

Preview Lab → · Contrast checker → · Palette generator →

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