#2A3C8E#2A3C8E

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

Color values

HEX#2A3C8E
RGBrgb(42, 60, 142)
HSLhsl(229, 54%, 36%)
HSVhsv(229, 70%, 56%)
CMYKcmyk(70.4%, 57.7%, 0%, 44.3%)
CIE-LABlab(28.58, 21.84, -47.67)
CIE-LCHlch(28.58, 52.44, 294.61°)
OKLaboklab(39.26% -0.0009 -0.1373)
OKLCHoklch(39.26% 0.137 269.6)
XYZxyz(7.4515, 5.6762, 26.2889)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3C8E #8E7C2A
analogous
#2A6E8E #2A3C8E #4A2A8E
triadic
#2A3C8E #8E2A3C #3C8E2A
tetradic
#2A3C8E #8E2A6E #8E7C2A #2A8E4A
square
#2A3C8E #8E2A6E #8E7C2A #2A8E4A
split-complementary
#2A3C8E #8E4A2A #6E8E2A
monochromatic
#0E1430 #1C285F #2A3C8E #3850BD #6276D1

Accessibility & contrast

On white

9.83
#2A3C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3C8E
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3C8E#FFFFFF#000000##FFFFFF
##2A3C8E1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3c8e;
/* rgb */ color: rgb(42, 60, 142);
/* oklch */ color: oklch(39.3% 0.137 269.6);
Tailwind
colors: {
  custom: {
    50: '#7171b0',
    500: '#2a3c8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a3c8e;
$custom-light: #7171b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3c8e",
  "rgb": {
    "r": 42,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 229.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39263,
    "c": 0.13727,
    "h": 269.6
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#2A3C8E
secondary
#B6A65D
accent
#C34ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2A3C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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