#2A4186#2A4186

#2A4186 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.119 H 267.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A4186
RGBrgb(42, 65, 134)
HSLhsl(225, 52%, 35%)
HSVhsv(225, 69%, 53%)
CMYKcmyk(68.7%, 51.5%, 0%, 47.5%)
CIE-LABlab(29.40, 15.37, -41.41)
CIE-LCHlch(29.40, 44.17, 290.36°)
OKLaboklab(39.69% -0.0062 -0.1188)
OKLCHoklch(39.69% 0.119 267)
XYZxyz(7.1467, 5.9934, 23.3298)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4186 #866F2A
analogous
#2A6F86 #2A4186 #412A86
triadic
#2A4186 #862A41 #41862A
tetradic
#2A4186 #862A6F #866F2A #2A8641
square
#2A4186 #862A6F #866F2A #2A8641
split-complementary
#2A4186 #86412A #6F862A
monochromatic
#0D1429 #1B2A57 #2A4186 #3958B5 #5E7ACD

Accessibility & contrast

On white

9.55
#2A4186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4186
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4186#FFFFFF#000000##FFFFFF
##2A41861.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A88
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4186;
/* rgb */ color: rgb(42, 65, 134);
/* oklch */ color: oklch(39.7% 0.119 267.0);
Tailwind
colors: {
  custom: {
    50: '#6f75aa',
    500: '#2a4186',
    950: '#000000',
  },
}
SCSS
$custom: #2a4186;
$custom-light: #6f75aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4186",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 225,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39689,
    "c": 0.11892,
    "h": 267
  },
  "luminance": 0.05994
}

Semantic roles & 50–950 ramp

primary
#2A4186
secondary
#B29C5A
accent
#B84CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4186

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

Preview Lab → · Contrast checker → · Palette generator →

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