#2A3A79#2A3A79

#2A3A79 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.109 H 269.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2A3A79
RGBrgb(42, 58, 121)
HSLhsl(228, 48%, 32%)
HSVhsv(228, 65%, 47%)
CMYKcmyk(65.3%, 52.1%, 0%, 52.5%)
CIE-LABlab(26.44, 15.23, -38.03)
CIE-LCHlch(26.44, 40.97, 291.82°)
OKLaboklab(37.15% -0.0005 -0.1089)
OKLCHoklch(37.15% 0.109 269.7)
XYZxyz(5.9179, 4.8983, 18.7191)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A79 #79692A
analogous
#2A6279 #2A3A79 #422A79
triadic
#2A3A79 #792A3A #3A792A
tetradic
#2A3A79 #792A62 #79692A #2A7942
square
#2A3A79 #792A62 #79692A #2A7942
split-complementary
#2A3A79 #79422A #62792A
monochromatic
#0A0E1E #1A244C #2A3A79 #3A50A6 #586EC5

Accessibility & contrast

On white

10.61
#2A3A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A3A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A79
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A79#FFFFFF#000000##FFFFFF
##2A3A791.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18427B
Deuteranopia (green-blind)
#043B78
Tritanopia (blue-blind)
#004953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a3a79;
/* rgb */ color: rgb(42, 58, 121);
/* oklch */ color: oklch(37.2% 0.109 269.7);
Tailwind
colors: {
  custom: {
    50: '#6c6fa0',
    500: '#2a3a79',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a79;
$custom-light: #6c6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a79",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 121
  },
  "hsl": {
    "h": 227.848,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37153,
    "c": 0.10893,
    "h": 269.7
  },
  "luminance": 0.04899
}

Semantic roles & 50–950 ramp

primary
#2A3A79
secondary
#AB9954
accent
#BC50D8
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #2A3A79

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

Preview Lab → · Contrast checker → · Palette generator →

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