#2A4292#2A4292

#2A4292 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.8% C 0.135 H 267.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2A4292
RGBrgb(42, 66, 146)
HSLhsl(226, 55%, 37%)
HSVhsv(226, 71%, 57%)
CMYKcmyk(71.2%, 54.8%, 0%, 42.7%)
CIE-LABlab(30.55, 19.28, -46.94)
CIE-LCHlch(30.55, 50.74, 292.33°)
OKLaboklab(40.84% -0.006 -0.135)
OKLCHoklch(40.84% 0.135 267.5)
XYZxyz(8.0896, 6.4632, 28.0097)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4292 #927A2A
analogous
#2A7692 #2A4292 #462A92
triadic
#2A4292 #922A42 #42922A
tetradic
#2A4292 #922A76 #927A2A #2A9246
square
#2A4292 #922A76 #927A2A #2A9246
split-complementary
#2A4292 #92462A #76922A
monochromatic
#0F1733 #1C2D62 #2A4292 #3857C2 #647DD2

Accessibility & contrast

On white

9.16
#2A4292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A4292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4292
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4292#FFFFFF#000000##FFFFFF
##2A42921.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074D95
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a4292;
/* rgb */ color: rgb(42, 66, 146);
/* oklch */ color: oklch(40.8% 0.135 267.5);
Tailwind
colors: {
  custom: {
    50: '#7176b3',
    500: '#2a4292',
    950: '#000000',
  },
}
SCSS
$custom: #2a4292;
$custom-light: #7176b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4292",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 146
  },
  "hsl": {
    "h": 226.154,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40842,
    "c": 0.13514,
    "h": 267.5
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#2A4292
secondary
#B8A45F
accent
#BC49DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A4292

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

Preview Lab → · Contrast checker → · Palette generator →

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