#2A304A#2A304A

#2A304A is a dark, muted blue. Relative luminance 0.031; OKLCH L 31.6% C 0.047 H 273.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2A304A
RGBrgb(42, 48, 74)
HSLhsl(229, 28%, 23%)
HSVhsv(229, 43%, 29%)
CMYKcmyk(43.2%, 35.1%, 0%, 71%)
CIE-LABlab(20.44, 5.17, -16.92)
CIE-LCHlch(20.44, 17.70, 286.99°)
OKLaboklab(31.6% 0.0029 -0.0473)
OKLCHoklch(31.6% 0.047 273.5)
XYZxyz(3.2475, 3.1004, 6.9046)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A304A #4A442A
analogous
#2A404A #2A304A #342A4A
triadic
#2A304A #4A2A30 #304A2A
tetradic
#2A304A #4A2A40 #4A442A #2A4A34
square
#2A304A #4A2A40 #4A442A #2A4A34
split-complementary
#2A304A #4A342A #404A2A
monochromatic
#0B0D14 #141723 #2A304A #404971 #566398

Accessibility & contrast

On white

12.96
#2A304A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A304A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A304A
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A304A#FFFFFF#000000##FFFFFF
##2A304A1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27334B
Deuteranopia (green-blind)
#253049
Tritanopia (blue-blind)
#203539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a304a;
/* rgb */ color: rgb(42, 48, 74);
/* oklch */ color: oklch(31.6% 0.047 273.5);
Tailwind
colors: {
  custom: {
    50: '#65687c',
    500: '#2a304a',
    950: '#000000',
  },
}
SCSS
$custom: #2a304a;
$custom-light: #65687c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a304a",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 74
  },
  "hsl": {
    "h": 228.75,
    "s": 27.586,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31602,
    "c": 0.04738,
    "h": 273.5
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#2A304A
secondary
#7C7454
accent
#B264C4
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#050609
muted
#7A7A7B

Preview Lab

Preview with #2A304A

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

Preview Lab → · Contrast checker → · Palette generator →

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