#2A4182#2A4182

#2A4182 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.113 H 266.6°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2A4182
RGBrgb(42, 65, 130)
HSLhsl(224, 51%, 34%)
HSVhsv(224, 68%, 51%)
CMYKcmyk(67.7%, 50%, 0%, 49%)
CIE-LABlab(29.12, 13.84, -39.37)
CIE-LCHlch(29.12, 41.73, 289.36°)
OKLaboklab(39.39% -0.0067 -0.1128)
OKLCHoklch(39.39% 0.113 266.6)
XYZxyz(6.8730, 5.8839, 21.8883)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4182 #826B2A
analogous
#2A6D82 #2A4182 #3F2A82
triadic
#2A4182 #822A41 #41822A
tetradic
#2A4182 #822A6D #826B2A #2A823F
square
#2A4182 #822A6D #826B2A #2A823F
split-complementary
#2A4182 #823F2A #6D822A
monochromatic
#0C1325 #1B2A54 #2A4182 #3958B0 #5C79CA

Accessibility & contrast

On white

9.65
#2A4182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A4182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4182
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4182#FFFFFF#000000##FFFFFF
##2A41821.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4984
Deuteranopia (green-blind)
#0A4181
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4182;
/* rgb */ color: rgb(42, 65, 130);
/* oklch */ color: oklch(39.4% 0.113 266.6);
Tailwind
colors: {
  custom: {
    50: '#6e75a7',
    500: '#2a4182',
    950: '#000000',
  },
}
SCSS
$custom: #2a4182;
$custom-light: #6e75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4182",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 130
  },
  "hsl": {
    "h": 224.318,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39388,
    "c": 0.11297,
    "h": 266.6
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#2A4182
secondary
#B09958
accent
#B64DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4182

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

Preview Lab → · Contrast checker → · Palette generator →

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