#2A304E#2A304E

#2A304E is a dark, muted blue. Relative luminance 0.032; OKLCH L 31.8% C 0.054 H 274.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2A304E
RGBrgb(42, 48, 78)
HSLhsl(230, 30%, 24%)
HSVhsv(230, 46%, 31%)
CMYKcmyk(46.2%, 38.5%, 0%, 69.4%)
CIE-LABlab(20.66, 6.52, -19.28)
CIE-LCHlch(20.66, 20.35, 288.69°)
OKLaboklab(31.84% 0.0041 -0.0541)
OKLCHoklch(31.84% 0.054 274.3)
XYZxyz(3.3865, 3.1560, 7.6370)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A304E #4E482A
analogous
#2A424E #2A304E #362A4E
triadic
#2A304E #4E2A30 #304E2A
tetradic
#2A304E #4E2A42 #4E482A #2A4E36
square
#2A304E #4E2A42 #4E482A #2A4E36
split-complementary
#2A304E #4E362A #424E2A
monochromatic
#0B0C14 #151826 #2A304E #3F4876 #55619E

Accessibility & contrast

On white

12.87
#2A304E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A304E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A304E
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A304E#FFFFFF#000000##FFFFFF
##2A304E1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26334F
Deuteranopia (green-blind)
#23304D
Tritanopia (blue-blind)
#1E363B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a304e;
/* rgb */ color: rgb(42, 48, 78);
/* oklch */ color: oklch(31.8% 0.054 274.3);
Tailwind
colors: {
  custom: {
    50: '#65687f',
    500: '#2a304e',
    950: '#000000',
  },
}
SCSS
$custom: #2a304e;
$custom-light: #65687f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a304e",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 78
  },
  "hsl": {
    "h": 230,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3184,
    "c": 0.05425,
    "h": 274.3
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#2A304E
secondary
#807954
accent
#B562C6
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #2A304E

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

Preview Lab → · Contrast checker → · Palette generator →

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