#2A4EAF#2A4EAF

#2A4EAF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.161 H 265.1°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2A4EAF
RGBrgb(42, 78, 175)
HSLhsl(224, 61%, 43%)
HSVhsv(224, 76%, 69%)
CMYKcmyk(76%, 55.4%, 0%, 31.4%)
CIE-LABlab(36.05, 22.32, -55.49)
CIE-LCHlch(36.05, 59.81, 291.92°)
OKLaboklab(45.68% -0.0136 -0.16)
OKLCHoklch(45.68% 0.161 265.1)
XYZxyz(11.4144, 9.0349, 41.6915)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EAF #AF8B2A
analogous
#2A91AF #2A4EAF #482AAF
triadic
#2A4EAF #AF2A4E #4EAF2A
tetradic
#2A4EAF #AF2A91 #AF8B2A #2AAF48
square
#2A4EAF #AF2A91 #AF8B2A #2AAF48
split-complementary
#2A4EAF #AF482A #91AF2A
monochromatic
#12224C #1E387E #2A4EAF #446BD2 #7592DE

Accessibility & contrast

On white

7.48
#2A4EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2A4EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EAF
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EAF#FFFFFF#000000##FFFFFF
##2A4EAF1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4eaf;
/* rgb */ color: rgb(42, 78, 175);
/* oklch */ color: oklch(45.7% 0.161 265.1);
Tailwind
colors: {
  custom: {
    50: '#777fc8',
    500: '#2a4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a4eaf;
$custom-light: #777fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4eaf",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 223.759,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45681,
    "c": 0.16054,
    "h": 265.1
  },
  "luminance": 0.09036
}

Semantic roles & 50–950 ramp

primary
#2A4EAF
secondary
#C6AE6F
accent
#B943E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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