#2A3477#2A3477

#2A3477 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.7% C 0.114 H 272.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A3477
RGBrgb(42, 52, 119)
HSLhsl(232, 48%, 32%)
HSVhsv(232, 65%, 47%)
CMYKcmyk(64.7%, 56.3%, 0%, 53.3%)
CIE-LABlab(24.58, 18.64, -39.78)
CIE-LCHlch(24.58, 43.93, 295.10°)
OKLaboklab(35.7% 0.0056 -0.1141)
OKLCHoklch(35.7% 0.114 272.8)
XYZxyz(5.5115, 4.2797, 17.9848)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3477 #776D2A
analogous
#2A5B77 #2A3477 #472A77
triadic
#2A3477 #772A34 #34772A
tetradic
#2A3477 #772A5B #776D2A #2A7747
square
#2A3477 #772A5B #776D2A #2A7747
split-complementary
#2A3477 #77472A #5B772A
monochromatic
#0A0C1D #1A204A #2A3477 #3A48A4 #5866C4

Accessibility & contrast

On white

11.31
#2A3477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A3477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3477
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3477#FFFFFF#000000##FFFFFF
##2A34771.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E79
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#004450
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3477;
/* rgb */ color: rgb(42, 52, 119);
/* oklch */ color: oklch(35.7% 0.114 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c6b9f',
    500: '#2a3477',
    950: '#000000',
  },
}
SCSS
$custom: #2a3477;
$custom-light: #6c6b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3477",
  "rgb": {
    "r": 42,
    "g": 52,
    "b": 119
  },
  "hsl": {
    "h": 232.208,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35697,
    "c": 0.11429,
    "h": 272.8
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#2A3477
secondary
#A99E54
accent
#C650D7
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A3477

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

Preview Lab → · Contrast checker → · Palette generator →

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