#2A3C9E#2A3C9E

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

Color values

HEX#2A3C9E
RGBrgb(42, 60, 158)
HSLhsl(231, 58%, 39%)
HSVhsv(231, 73%, 62%)
CMYKcmyk(73.4%, 62%, 0%, 38%)
CIE-LABlab(29.89, 27.88, -55.32)
CIE-LCHlch(29.89, 61.95, 296.74°)
OKLaboklab(40.65% -0.0007 -0.1597)
OKLCHoklch(40.65% 0.16 269.7)
XYZxyz(8.7401, 6.1917, 33.0756)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C9E #9E8C2A
analogous
#2A769E #2A3C9E #522A9E
triadic
#2A3C9E #9E2A3C #3C9E2A
tetradic
#2A3C9E #9E2A76 #9E8C2A #2A9E52
square
#2A3C9E #9E2A76 #9E8C2A #2A9E52
split-complementary
#2A3C9E #9E522A #769E2A
monochromatic
#10173D #1D2A6E #2A3C9E #3A51CB #6B7CD8

Accessibility & contrast

On white

9.38
#2A3C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A3C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C9E
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C9E#FFFFFF#000000##FFFFFF
##2A3C9E1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3c9e;
/* rgb */ color: rgb(42, 60, 158);
/* oklch */ color: oklch(40.6% 0.160 269.7);
Tailwind
colors: {
  custom: {
    50: '#7471bb',
    500: '#2a3c9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c9e;
$custom-light: #7471bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c9e",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 158
  },
  "hsl": {
    "h": 230.69,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40648,
    "c": 0.15974,
    "h": 269.7
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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