#2A4166#2A4166

#2A4166 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.5% C 0.070 H 259.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2A4166
RGBrgb(42, 65, 102)
HSLhsl(217, 42%, 28%)
HSVhsv(217, 59%, 40%)
CMYKcmyk(58.8%, 36.3%, 0%, 60%)
CIE-LABlab(27.38, 3.33, -24.44)
CIE-LCHlch(27.38, 24.66, 277.75°)
OKLaboklab(37.49% -0.0127 -0.069)
OKLCHoklch(37.49% 0.07 259.5)
XYZxyz(5.2426, 5.2317, 13.3014)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4166 #664F2A
analogous
#2A5F66 #2A4166 #312A66
triadic
#2A4166 #662A41 #41662A
tetradic
#2A4166 #662A5F #664F2A #2A6631
square
#2A4166 #662A5F #664F2A #2A6631
split-complementary
#2A4166 #66312A #5F662A
monochromatic
#090E16 #18253B #2A4166 #3C5D91 #5279B8

Accessibility & contrast

On white

10.26
#2A4166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A4166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4166
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4166#FFFFFF#000000##FFFFFF
##2A41661.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324468
Deuteranopia (green-blind)
#2B3E65
Tritanopia (blue-blind)
#04494E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4166;
/* rgb */ color: rgb(42, 65, 102);
/* oklch */ color: oklch(37.5% 0.070 259.5);
Tailwind
colors: {
  custom: {
    50: '#697592',
    500: '#2a4166',
    950: '#000000',
  },
}
SCSS
$custom: #2a4166;
$custom-light: #697592;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4166",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 102
  },
  "hsl": {
    "h": 217,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37491,
    "c": 0.07015,
    "h": 259.5
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#2A4166
secondary
#987E54
accent
#A256D1
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#06080D
muted
#7A7B7D

Preview Lab

Preview with #2A4166

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

Preview Lab → · Contrast checker → · Palette generator →

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