#2A3A84#2A3A84

#2A3A84 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.125 H 270.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2A3A84
RGBrgb(42, 58, 132)
HSLhsl(229, 52%, 34%)
HSVhsv(229, 68%, 52%)
CMYKcmyk(68.2%, 56.1%, 0%, 48.2%)
CIE-LABlab(27.25, 19.41, -43.63)
CIE-LCHlch(27.25, 47.75, 293.98°)
OKLaboklab(38.02% 0.0004 -0.1254)
OKLCHoklch(38.02% 0.125 270.2)
XYZxyz(6.6313, 5.1837, 22.4764)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A84 #84742A
analogous
#2A6784 #2A3A84 #472A84
triadic
#2A3A84 #842A3A #3A842A
tetradic
#2A3A84 #842A67 #84742A #2A8447
square
#2A3A84 #842A67 #84742A #2A8447
split-complementary
#2A3A84 #84472A #67842A
monochromatic
#0C1127 #1B2656 #2A3A84 #394EB2 #5D71CB

Accessibility & contrast

On white

10.31
#2A3A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A3A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A84
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A84#FFFFFF#000000##FFFFFF
##2A3A841.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034587
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a3a84;
/* rgb */ color: rgb(42, 58, 132);
/* oklch */ color: oklch(38.0% 0.125 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f6fa8',
    500: '#2a3a84',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a84;
$custom-light: #6f6fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a84",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 132
  },
  "hsl": {
    "h": 229.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38021,
    "c": 0.1254,
    "h": 270.2
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#2A3A84
secondary
#B1A159
accent
#C24DDB
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3A84

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

Preview Lab → · Contrast checker → · Palette generator →

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