#2A4790#2A4790

#2A4790 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.126 H 265.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2A4790
RGBrgb(42, 71, 144)
HSLhsl(223, 55%, 36%)
HSVhsv(223, 71%, 56%)
CMYKcmyk(70.8%, 50.7%, 0%, 43.5%)
CIE-LABlab(31.83, 15.12, -43.64)
CIE-LCHlch(31.83, 46.19, 289.11°)
OKLaboklab(41.77% -0.0107 -0.1252)
OKLCHoklch(41.77% 0.126 265.1)
XYZxyz(8.2404, 7.0115, 27.2992)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4790 #90732A
analogous
#2A7A90 #2A4790 #402A90
triadic
#2A4790 #902A47 #47902A
tetradic
#2A4790 #902A7A #90732A #2A9040
square
#2A4790 #902A7A #90732A #2A9040
split-complementary
#2A4790 #90402A #7A902A
monochromatic
#0E1831 #1C3061 #2A4790 #385EBF #6382D1

Accessibility & contrast

On white

8.74
#2A4790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2A4790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4790
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4790#FFFFFF#000000##FFFFFF
##2A47901.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5093
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a4790;
/* rgb */ color: rgb(42, 71, 144);
/* oklch */ color: oklch(41.8% 0.126 265.1);
Tailwind
colors: {
  custom: {
    50: '#7179b1',
    500: '#2a4790',
    950: '#000000',
  },
}
SCSS
$custom: #2a4790;
$custom-light: #7179b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4790",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 144
  },
  "hsl": {
    "h": 222.941,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.12569,
    "h": 265.1
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#2A4790
secondary
#B79E5E
accent
#B44ADE
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080911
muted
#7B7B80

Preview Lab

Preview with #2A4790

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

Preview Lab → · Contrast checker → · Palette generator →

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