#2A4066#2A4066

#2A4066 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.2% C 0.071 H 260.8°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2A4066
RGBrgb(42, 64, 102)
HSLhsl(218, 42%, 28%)
HSVhsv(218, 59%, 40%)
CMYKcmyk(58.8%, 37.3%, 0%, 60%)
CIE-LABlab(27.07, 4.00, -24.93)
CIE-LCHlch(27.07, 25.25, 279.11°)
OKLaboklab(37.24% -0.0114 -0.0704)
OKLCHoklch(37.24% 0.071 260.8)
XYZxyz(5.1857, 5.1179, 13.2824)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4066 #66502A
analogous
#2A5E66 #2A4066 #322A66
triadic
#2A4066 #662A40 #40662A
tetradic
#2A4066 #662A5E #66502A #2A6632
square
#2A4066 #662A5E #66502A #2A6632
split-complementary
#2A4066 #66322A #5E662A
monochromatic
#090E16 #18253B #2A4066 #3C5B91 #5278B8

Accessibility & contrast

On white

10.38
#2A4066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2A4066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4066
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4066#FFFFFF#000000##FFFFFF
##2A40661.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314368
Deuteranopia (green-blind)
#293D65
Tritanopia (blue-blind)
#05484E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4066;
/* rgb */ color: rgb(42, 64, 102);
/* oklch */ color: oklch(37.2% 0.071 260.8);
Tailwind
colors: {
  custom: {
    50: '#697492',
    500: '#2a4066',
    950: '#000000',
  },
}
SCSS
$custom: #2a4066;
$custom-light: #697492;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4066",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 102
  },
  "hsl": {
    "h": 218,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37244,
    "c": 0.07137,
    "h": 260.8
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#2A4066
secondary
#987F54
accent
#A456D1
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#06080D
muted
#7A7B7D

Preview Lab

Preview with #2A4066

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

Preview Lab → · Contrast checker → · Palette generator →

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