#2A4871#2A4871

#2A4871 is a dark, moderate cyan. Relative luminance 0.063; OKLCH L 39.9% C 0.079 H 256.6°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2A4871
RGBrgb(42, 72, 113)
HSLhsl(215, 46%, 30%)
HSVhsv(215, 63%, 44%)
CMYKcmyk(62.8%, 36.3%, 0%, 55.7%)
CIE-LABlab(30.20, 2.68, -26.99)
CIE-LCHlch(30.20, 27.12, 275.68°)
OKLaboklab(39.89% -0.0182 -0.0764)
OKLCHoklch(39.89% 0.079 256.6)
XYZxyz(6.2518, 6.3187, 16.5097)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4871 #71532A
analogous
#2A6B71 #2A4871 #302A71
triadic
#2A4871 #712A48 #48712A
tetradic
#2A4871 #712A6B #71532A #2A7130
square
#2A4871 #712A6B #71532A #2A7130
split-complementary
#2A4871 #71302A #6B712A
monochromatic
#090F18 #192C44 #2A4871 #3B649E #5582C0

Accessibility & contrast

On white

9.28
#2A4871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A4871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4871
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4871#FFFFFF#000000##FFFFFF
##2A48711.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B73
Deuteranopia (green-blind)
#2D4470
Tritanopia (blue-blind)
#005157
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a4871;
/* rgb */ color: rgb(42, 72, 113);
/* oklch */ color: oklch(39.9% 0.079 256.6);
Tailwind
colors: {
  custom: {
    50: '#6a7a9a',
    500: '#2a4871',
    950: '#000000',
  },
}
SCSS
$custom: #2a4871;
$custom-light: #6a7a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4871",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 214.648,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39885,
    "c": 0.07851,
    "h": 256.6
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#2A4871
secondary
#A38254
accent
#9E52D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2A4871

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

Preview Lab → · Contrast checker → · Palette generator →

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