#2A3C8D#2A3C8D

#2A3C8D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.136 H 269.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2A3C8D
RGBrgb(42, 60, 141)
HSLhsl(229, 54%, 36%)
HSVhsv(229, 70%, 55%)
CMYKcmyk(70.2%, 57.4%, 0%, 44.7%)
CIE-LABlab(28.50, 21.46, -47.19)
CIE-LCHlch(28.50, 51.84, 294.46°)
OKLaboklab(39.18% -0.0009 -0.1358)
OKLCHoklch(39.18% 0.136 269.6)
XYZxyz(7.3768, 5.6463, 25.8952)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C8D #8D7B2A
analogous
#2A6D8D #2A3C8D #492A8D
triadic
#2A3C8D #8D2A3C #3C8D2A
tetradic
#2A3C8D #8D2A6D #8D7B2A #2A8D49
square
#2A3C8D #8D2A6D #8D7B2A #2A8D49
split-complementary
#2A3C8D #8D492A #6D8D2A
monochromatic
#0E142F #1C285E #2A3C8D #3850BC #6175D0

Accessibility & contrast

On white

9.86
#2A3C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A3C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3C8D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C8D#FFFFFF#000000##FFFFFF
##2A3C8D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3c8d;
/* rgb */ color: rgb(42, 60, 141);
/* oklch */ color: oklch(39.2% 0.136 269.6);
Tailwind
colors: {
  custom: {
    50: '#7171af',
    500: '#2a3c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c8d;
$custom-light: #7171af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c8d",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 229.091,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39179,
    "c": 0.13583,
    "h": 269.6
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#2A3C8D
secondary
#B6A65D
accent
#C34ADD
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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