#2A4DAF#2A4DAF

#2A4DAF is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.162 H 265.4°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2A4DAF
RGBrgb(42, 77, 175)
HSLhsl(224, 61%, 43%)
HSVhsv(224, 76%, 69%)
CMYKcmyk(76%, 56%, 0%, 31.4%)
CIE-LABlab(35.78, 22.99, -55.93)
CIE-LCHlch(35.78, 60.47, 292.34°)
OKLaboklab(45.48% -0.0128 -0.1613)
OKLCHoklch(45.48% 0.162 265.4)
XYZxyz(11.3439, 8.8939, 41.6680)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DAF #AF8C2A
analogous
#2A8FAF #2A4DAF #4A2AAF
triadic
#2A4DAF #AF2A4D #4DAF2A
tetradic
#2A4DAF #AF2A8F #AF8C2A #2AAF4A
square
#2A4DAF #AF2A8F #AF8C2A #2AAF4A
split-complementary
#2A4DAF #AF4A2A #8FAF2A
monochromatic
#12224C #1E377E #2A4DAF #4469D2 #7591DE

Accessibility & contrast

On white

7.56
#2A4DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A4DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DAF
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DAF#FFFFFF#000000##FFFFFF
##2A4DAF1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a4daf;
/* rgb */ color: rgb(42, 77, 175);
/* oklch */ color: oklch(45.5% 0.162 265.4);
Tailwind
colors: {
  custom: {
    50: '#777ec8',
    500: '#2a4daf',
    950: '#000000',
  },
}
SCSS
$custom: #2a4daf;
$custom-light: #777ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4daf",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 224.211,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45476,
    "c": 0.16179,
    "h": 265.4
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#2A4DAF
secondary
#C6AF6F
accent
#BA43E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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