#2A3979#2A3979

#2A3979 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.110 H 270.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2A3979
RGBrgb(42, 57, 121)
HSLhsl(229, 48%, 32%)
HSVhsv(229, 65%, 47%)
CMYKcmyk(65.3%, 52.9%, 0%, 52.5%)
CIE-LABlab(26.15, 15.92, -38.50)
CIE-LCHlch(26.15, 41.66, 292.47°)
OKLaboklab(36.93% 0.0005 -0.1103)
OKLCHoklch(36.93% 0.11 270.3)
XYZxyz(5.8680, 4.7985, 18.7024)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3979 #796A2A
analogous
#2A6179 #2A3979 #432A79
triadic
#2A3979 #792A39 #39792A
tetradic
#2A3979 #792A61 #796A2A #2A7943
square
#2A3979 #792A61 #796A2A #2A7943
split-complementary
#2A3979 #79432A #61792A
monochromatic
#0A0E1E #1A244C #2A3979 #3A4EA6 #586DC5

Accessibility & contrast

On white

10.72
#2A3979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A3979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3979
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3979#FFFFFF#000000##FFFFFF
##2A39791.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427B
Deuteranopia (green-blind)
#003B78
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3979;
/* rgb */ color: rgb(42, 57, 121);
/* oklch */ color: oklch(36.9% 0.110 270.3);
Tailwind
colors: {
  custom: {
    50: '#6c6fa0',
    500: '#2a3979',
    950: '#000000',
  },
}
SCSS
$custom: #2a3979;
$custom-light: #6c6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3979",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 228.608,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.11032,
    "h": 270.3
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#2A3979
secondary
#AB9A54
accent
#BE50D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2A3979

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

Preview Lab → · Contrast checker → · Palette generator →

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