#2A3C8F#2A3C8F

#2A3C8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.139 H 269.7°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2A3C8F
RGBrgb(42, 60, 143)
HSLhsl(229, 55%, 36%)
HSVhsv(229, 71%, 56%)
CMYKcmyk(70.6%, 58%, 0%, 43.9%)
CIE-LABlab(28.66, 22.22, -48.16)
CIE-LCHlch(28.66, 53.04, 294.76°)
OKLaboklab(39.35% -0.0008 -0.1387)
OKLCHoklch(39.35% 0.139 269.7)
XYZxyz(7.5269, 5.7064, 26.6860)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C8F #8F7D2A
analogous
#2A6F8F #2A3C8F #4B2A8F
triadic
#2A3C8F #8F2A3C #3C8F2A
tetradic
#2A3C8F #8F2A6F #8F7D2A #2A8F4B
square
#2A3C8F #8F2A6F #8F7D2A #2A8F4B
split-complementary
#2A3C8F #8F4B2A #6F8F2A
monochromatic
#0E1430 #1C2860 #2A3C8F #3850BE #6276D1

Accessibility & contrast

On white

9.81
#2A3C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A3C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C8F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C8F#FFFFFF#000000##FFFFFF
##2A3C8F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3c8f;
/* rgb */ color: rgb(42, 60, 143);
/* oklch */ color: oklch(39.3% 0.139 269.7);
Tailwind
colors: {
  custom: {
    50: '#7171b0',
    500: '#2a3c8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c8f;
$custom-light: #7171b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c8f",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 229.307,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39346,
    "c": 0.13871,
    "h": 269.7
  },
  "luminance": 0.05707
}

Semantic roles & 50–950 ramp

primary
#2A3C8F
secondary
#B7A75E
accent
#C44ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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