#2A3C9F#2A3C9F

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

Color values

HEX#2A3C9F
RGBrgb(42, 60, 159)
HSLhsl(231, 58%, 39%)
HSVhsv(231, 74%, 62%)
CMYKcmyk(73.6%, 62.3%, 0%, 37.6%)
CIE-LABlab(29.98, 28.25, -55.79)
CIE-LCHlch(29.98, 62.54, 296.86°)
OKLaboklab(40.74% -0.0007 -0.1611)
OKLCHoklch(40.74% 0.161 269.7)
XYZxyz(8.8266, 6.2262, 33.5308)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C9F #9F8D2A
analogous
#2A779F #2A3C9F #532A9F
triadic
#2A3C9F #9F2A3C #3C9F2A
tetradic
#2A3C9F #9F2A77 #9F8D2A #2A9F53
square
#2A3C9F #9F2A77 #9F8D2A #2A9F53
split-complementary
#2A3C9F #9F532A #779F2A
monochromatic
#10173E #1D2A6F #2A3C9F #3B51CB #6B7CD8

Accessibility & contrast

On white

9.35
#2A3C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A3C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C9F
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C9F#FFFFFF#000000##FFFFFF
##2A3C9F1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3c9f;
/* rgb */ color: rgb(42, 60, 159);
/* oklch */ color: oklch(40.7% 0.161 269.7);
Tailwind
colors: {
  custom: {
    50: '#7571bc',
    500: '#2a3c9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c9f;
$custom-light: #7571bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c9f",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 159
  },
  "hsl": {
    "h": 230.769,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40738,
    "c": 0.16111,
    "h": 269.7
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#2A3C9F
secondary
#BFB166
accent
#CA46E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A3C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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