#2A3A9E#2A3A9E

#2A3A9E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.162 H 270.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2A3A9E
RGBrgb(42, 58, 158)
HSLhsl(232, 58%, 39%)
HSVhsv(232, 73%, 62%)
CMYKcmyk(73.4%, 63.3%, 0%, 38%)
CIE-LABlab(29.38, 29.20, -56.16)
CIE-LCHlch(29.38, 63.30, 297.47°)
OKLaboklab(40.27% 0.0008 -0.1622)
OKLCHoklch(40.27% 0.162 270.3)
XYZxyz(8.6373, 5.9861, 33.0414)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A9E #9E8E2A
analogous
#2A749E #2A3A9E #542A9E
triadic
#2A3A9E #9E2A3A #3A9E2A
tetradic
#2A3A9E #9E2A74 #9E8E2A #2A9E54
square
#2A3A9E #9E2A74 #9E8E2A #2A9E54
split-complementary
#2A3A9E #9E542A #749E2A
monochromatic
#10173D #1D286E #2A3A9E #3A4ECB #6B7AD8

Accessibility & contrast

On white

9.56
#2A3A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A3A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A9E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A9E#FFFFFF#000000##FFFFFF
##2A3A9E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3a9e;
/* rgb */ color: rgb(42, 58, 158);
/* oklch */ color: oklch(40.3% 0.162 270.3);
Tailwind
colors: {
  custom: {
    50: '#7570bc',
    500: '#2a3a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a9e;
$custom-light: #7570bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a9e",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 158
  },
  "hsl": {
    "h": 231.724,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40269,
    "c": 0.16222,
    "h": 270.3
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

primary
#2A3A9E
secondary
#BEB266
accent
#CC47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A3A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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