#2A4792#2A4792

#2A4792 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.9% C 0.129 H 265.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2A4792
RGBrgb(42, 71, 146)
HSLhsl(223, 55%, 37%)
HSVhsv(223, 71%, 57%)
CMYKcmyk(71.2%, 51.4%, 0%, 42.7%)
CIE-LABlab(31.97, 15.89, -44.64)
CIE-LCHlch(31.97, 47.38, 289.59°)
OKLaboklab(41.92% -0.0105 -0.1282)
OKLCHoklch(41.92% 0.129 265.3)
XYZxyz(8.3946, 7.0732, 28.1114)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4792 #92752A
analogous
#2A7B92 #2A4792 #412A92
triadic
#2A4792 #922A47 #47922A
tetradic
#2A4792 #922A7B #92752A #2A9241
square
#2A4792 #922A7B #92752A #2A9241
split-complementary
#2A4792 #92412A #7B922A
monochromatic
#0F1933 #1C3062 #2A4792 #385EC2 #6483D2

Accessibility & contrast

On white

8.70
#2A4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4792
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4792#FFFFFF#000000##FFFFFF
##2A47921.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5095
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a4792;
/* rgb */ color: rgb(42, 71, 146);
/* oklch */ color: oklch(41.9% 0.129 265.3);
Tailwind
colors: {
  custom: {
    50: '#7179b2',
    500: '#2a4792',
    950: '#000000',
  },
}
SCSS
$custom: #2a4792;
$custom-light: #7179b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4792",
  "rgb": {
    "r": 42,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 223.269,
    "s": 55.319,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41919,
    "c": 0.1286,
    "h": 265.3
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

primary
#2A4792
secondary
#B8A05F
accent
#B549DF
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4792

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

Preview Lab → · Contrast checker → · Palette generator →

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