#2A3C9D#2A3C9D

#2A3C9D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.158 H 269.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2A3C9D
RGBrgb(42, 60, 157)
HSLhsl(231, 58%, 39%)
HSVhsv(231, 73%, 62%)
CMYKcmyk(73.2%, 61.8%, 0%, 38.4%)
CIE-LABlab(29.81, 27.50, -54.85)
CIE-LCHlch(29.81, 61.36, 296.63°)
OKLaboklab(40.56% -0.0007 -0.1584)
OKLCHoklch(40.56% 0.158 269.8)
XYZxyz(8.6544, 6.1574, 32.6241)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C9D #9D8B2A
analogous
#2A769D #2A3C9D #522A9D
triadic
#2A3C9D #9D2A3C #3C9D2A
tetradic
#2A3C9D #9D2A76 #9D8B2A #2A9D52
square
#2A3C9D #9D2A76 #9D8B2A #2A9D52
split-complementary
#2A3C9D #9D522A #769D2A
monochromatic
#10173C #1D2A6D #2A3C9D #3A51CA #6A7BD7

Accessibility & contrast

On white

9.41
#2A3C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A3C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C9D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C9D#FFFFFF#000000##FFFFFF
##2A3C9D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a3c9d;
/* rgb */ color: rgb(42, 60, 157);
/* oklch */ color: oklch(40.6% 0.158 269.8);
Tailwind
colors: {
  custom: {
    50: '#7471bb',
    500: '#2a3c9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c9d;
$custom-light: #7471bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c9d",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 230.609,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.15836,
    "h": 269.8
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#2A3C9D
secondary
#BEB065
accent
#C947E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2A3C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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