#2A4F91#2A4F91

#2A4F91 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.117 H 261.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2A4F91
RGBrgb(42, 79, 145)
HSLhsl(218, 55%, 37%)
HSVhsv(218, 71%, 57%)
CMYKcmyk(71%, 45.5%, 0%, 43.1%)
CIE-LABlab(34.25, 10.12, -40.37)
CIE-LCHlch(34.25, 41.62, 284.08°)
OKLaboklab(43.64% -0.0183 -0.1155)
OKLCHoklch(43.64% 0.117 261)
XYZxyz(8.8598, 8.1276, 27.8844)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F91 #916C2A
analogous
#2A8391 #2A4F91 #392A91
triadic
#2A4F91 #912A4F #4F912A
tetradic
#2A4F91 #912A83 #916C2A #2A9139
square
#2A4F91 #912A83 #916C2A #2A9139
split-complementary
#2A4F91 #91392A #83912A
monochromatic
#0F1B32 #1C3562 #2A4F91 #3869C0 #638BD2

Accessibility & contrast

On white

8.00
#2A4F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A4F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F91
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F91#FFFFFF#000000##FFFFFF
##2A4F911.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5694
Deuteranopia (green-blind)
#1B4C90
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4f91;
/* rgb */ color: rgb(42, 79, 145);
/* oklch */ color: oklch(43.6% 0.117 261.0);
Tailwind
colors: {
  custom: {
    50: '#707fb2',
    500: '#2a4f91',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f91;
$custom-light: #707fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f91",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 145
  },
  "hsl": {
    "h": 218.447,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.11693,
    "h": 261
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#2A4F91
secondary
#B8985F
accent
#A949DE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2A4F91

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

Preview Lab → · Contrast checker → · Palette generator →

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