#2A4E9F#2A4E9F

#2A4E9F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.138 H 263.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#2A4E9F
RGBrgb(42, 78, 159)
HSLhsl(222, 58%, 39%)
HSVhsv(222, 74%, 62%)
CMYKcmyk(73.6%, 50.9%, 0%, 37.6%)
CIE-LABlab(34.89, 16.18, -47.81)
CIE-LCHlch(34.89, 50.48, 288.70°)
OKLaboklab(44.43% -0.0152 -0.1374)
OKLCHoklch(44.43% 0.138 263.7)
XYZxyz(9.9350, 8.4432, 33.9003)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E9F #9F7B2A
analogous
#2A899F #2A4E9F #402A9F
triadic
#2A4E9F #9F2A4E #4E9F2A
tetradic
#2A4E9F #9F2A89 #9F7B2A #2A9F40
square
#2A4E9F #9F2A89 #9F7B2A #2A9F40
split-complementary
#2A4E9F #9F402A #899F2A
monochromatic
#101F3E #1D366F #2A4E9F #3B67CB #6B8DD8

Accessibility & contrast

On white

7.81
#2A4E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2A4E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E9F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E9F#FFFFFF#000000##FFFFFF
##2A4E9F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E58A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#00616F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4e9f;
/* rgb */ color: rgb(42, 78, 159);
/* oklch */ color: oklch(44.4% 0.138 263.7);
Tailwind
colors: {
  custom: {
    50: '#747fbc',
    500: '#2a4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e9f;
$custom-light: #747fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e9f",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 221.538,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.13822,
    "h": 263.7
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#2A4E9F
secondary
#BFA366
accent
#B246E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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