#2A3B9E#2A3B9E

#2A3B9E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.161 H 270.0°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2A3B9E
RGBrgb(42, 59, 158)
HSLhsl(231, 58%, 39%)
HSVhsv(231, 73%, 62%)
CMYKcmyk(73.4%, 62.7%, 0%, 38%)
CIE-LABlab(29.63, 28.54, -55.74)
CIE-LCHlch(29.63, 62.63, 297.11°)
OKLaboklab(40.46% 0 -0.161)
OKLCHoklch(40.46% 0.161 270)
XYZxyz(8.6883, 6.0879, 33.0583)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3B9E #9E8D2A
analogous
#2A759E #2A3B9E #532A9E
triadic
#2A3B9E #9E2A3B #3B9E2A
tetradic
#2A3B9E #9E2A75 #9E8D2A #2A9E53
square
#2A3B9E #9E2A75 #9E8D2A #2A9E53
split-complementary
#2A3B9E #9E532A #759E2A
monochromatic
#10173D #1D296E #2A3B9E #3A50CB #6B7BD8

Accessibility & contrast

On white

9.47
#2A3B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A3B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3B9E
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3B9E#FFFFFF#000000##FFFFFF
##2A3B9E1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3b9e;
/* rgb */ color: rgb(42, 59, 158);
/* oklch */ color: oklch(40.5% 0.161 270.0);
Tailwind
colors: {
  custom: {
    50: '#7570bc',
    500: '#2a3b9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a3b9e;
$custom-light: #7570bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3b9e",
  "rgb": {
    "r": 42,
    "g": 59,
    "b": 158
  },
  "hsl": {
    "h": 231.207,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40458,
    "c": 0.16098,
    "h": 270
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#2A3B9E
secondary
#BEB166
accent
#CB47E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A3B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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