#2A3379#2A3379

#2A3379 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.7% C 0.119 H 273.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A3379
RGBrgb(42, 51, 121)
HSLhsl(233, 48%, 32%)
HSVhsv(233, 65%, 47%)
CMYKcmyk(65.3%, 57.9%, 0%, 52.5%)
CIE-LABlab(24.45, 20.08, -41.25)
CIE-LCHlch(24.45, 45.88, 295.95°)
OKLaboklab(35.65% 0.0068 -0.1185)
OKLCHoklch(35.65% 0.119 273.3)
XYZxyz(5.5887, 4.2399, 18.6093)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3379 #79702A
analogous
#2A5A79 #2A3379 #492A79
triadic
#2A3379 #792A33 #33792A
tetradic
#2A3379 #792A5A #79702A #2A7949
square
#2A3379 #792A5A #79702A #2A7949
split-complementary
#2A3379 #79492A #5A792A
monochromatic
#0A0D1E #1A204C #2A3379 #3A46A6 #5865C5

Accessibility & contrast

On white

11.36
#2A3379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A3379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3379
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3379#FFFFFF#000000##FFFFFF
##2A33791.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004450
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3379;
/* rgb */ color: rgb(42, 51, 121);
/* oklch */ color: oklch(35.7% 0.119 273.3);
Tailwind
colors: {
  custom: {
    50: '#6d6aa0',
    500: '#2a3379',
    950: '#000000',
  },
}
SCSS
$custom: #2a3379;
$custom-light: #6d6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3379",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 233.165,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35651,
    "c": 0.11868,
    "h": 273.3
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#2A3379
secondary
#ABA154
accent
#C950D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A3379

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

Preview Lab → · Contrast checker → · Palette generator →

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