#2A4A9C#2A4A9C

#2A4A9C is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.139 H 265.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2A4A9C
RGBrgb(42, 74, 156)
HSLhsl(223, 58%, 39%)
HSVhsv(223, 73%, 61%)
CMYKcmyk(73.1%, 52.6%, 0%, 38.8%)
CIE-LABlab(33.54, 17.71, -48.18)
CIE-LCHlch(33.54, 51.34, 290.18°)
OKLaboklab(43.34% -0.012 -0.1385)
OKLCHoklch(43.34% 0.139 265)
XYZxyz(9.4023, 7.7891, 32.4540)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A9C #9C7C2A
analogous
#2A839C #2A4A9C #432A9C
triadic
#2A4A9C #9C2A4A #4A9C2A
tetradic
#2A4A9C #9C2A83 #9C7C2A #2A9C43
square
#2A4A9C #9C2A83 #9C7C2A #2A9C43
split-complementary
#2A4A9C #9C432A #839C2A
monochromatic
#101C3C #1D336C #2A4A9C #3962CA #6A88D7

Accessibility & contrast

On white

8.21
#2A4A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A4A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A9C
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A9C#FFFFFF#000000##FFFFFF
##2A4A9C1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15549F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#005E6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4a9c;
/* rgb */ color: rgb(42, 74, 156);
/* oklch */ color: oklch(43.3% 0.139 265.0);
Tailwind
colors: {
  custom: {
    50: '#737cba',
    500: '#2a4a9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a9c;
$custom-light: #737cba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a9c",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 156
  },
  "hsl": {
    "h": 223.158,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43337,
    "c": 0.13907,
    "h": 265
  },
  "luminance": 0.0779
}

Semantic roles & 50–950 ramp

primary
#2A4A9C
secondary
#BDA465
accent
#B647E1
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2A4A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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