#2A3D9C#2A3D9C

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

Color values

HEX#2A3D9C
RGBrgb(42, 61, 156)
HSLhsl(230, 58%, 39%)
HSVhsv(230, 73%, 61%)
CMYKcmyk(73.1%, 60.9%, 0%, 38.8%)
CIE-LABlab(29.98, 26.46, -53.96)
CIE-LCHlch(29.98, 60.10, 296.12°)
OKLaboklab(40.66% -0.0014 -0.1557)
OKLCHoklch(40.66% 0.156 269.5)
XYZxyz(8.6223, 6.2291, 32.1940)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D9C #9C892A
analogous
#2A769C #2A3D9C #502A9C
triadic
#2A3D9C #9C2A3D #3D9C2A
tetradic
#2A3D9C #9C2A76 #9C892A #2A9C50
square
#2A3D9C #9C2A76 #9C892A #2A9C50
split-complementary
#2A3D9C #9C502A #769C2A
monochromatic
#10173C #1D2A6C #2A3D9C #3951CA #6A7CD7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A3D9C#FFFFFF#000000##FFFFFF
##2A3D9C1.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)
#004C9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a3d9c;
/* rgb */ color: rgb(42, 61, 156);
/* oklch */ color: oklch(40.7% 0.156 269.5);
Tailwind
colors: {
  custom: {
    50: '#7472ba',
    500: '#2a3d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d9c;
$custom-light: #7472ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d9c",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 230,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40664,
    "c": 0.15573,
    "h": 269.5
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#2A3D9C
secondary
#BDAE65
accent
#C747E1
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A3D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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