#2A3D8F#2A3D8F

#2A3D8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.137 H 269.3°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2A3D8F
RGBrgb(42, 61, 143)
HSLhsl(229, 55%, 36%)
HSVhsv(229, 71%, 56%)
CMYKcmyk(70.6%, 57.3%, 0%, 43.9%)
CIE-LABlab(28.93, 21.54, -47.72)
CIE-LCHlch(28.93, 52.35, 294.29°)
OKLaboklab(39.55% -0.0017 -0.1374)
OKLCHoklch(39.55% 0.137 269.3)
XYZxyz(7.5798, 5.8122, 26.7037)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D8F #8F7C2A
analogous
#2A708F #2A3D8F #4A2A8F
triadic
#2A3D8F #8F2A3D #3D8F2A
tetradic
#2A3D8F #8F2A70 #8F7C2A #2A8F4A
square
#2A3D8F #8F2A70 #8F7C2A #2A8F4A
split-complementary
#2A3D8F #8F4A2A #708F2A
monochromatic
#0E1530 #1C2960 #2A3D8F #3851BE #6277D1

Accessibility & contrast

On white

9.71
#2A3D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A3D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D8F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D8F#FFFFFF#000000##FFFFFF
##2A3D8F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3d8f;
/* rgb */ color: rgb(42, 61, 143);
/* oklch */ color: oklch(39.6% 0.137 269.3);
Tailwind
colors: {
  custom: {
    50: '#7172b0',
    500: '#2a3d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d8f;
$custom-light: #7172b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d8f",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 228.713,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39552,
    "c": 0.13739,
    "h": 269.3
  },
  "luminance": 0.05813
}

Semantic roles & 50–950 ramp

primary
#2A3D8F
secondary
#B7A65E
accent
#C24ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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