#2A4076#2A4076

#2A4076 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.096 H 265.4°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2A4076
RGBrgb(42, 64, 118)
HSLhsl(223, 48%, 31%)
HSVhsv(223, 64%, 46%)
CMYKcmyk(64.4%, 45.8%, 0%, 53.7%)
CIE-LABlab(28.02, 9.95, -33.60)
CIE-LCHlch(28.02, 35.04, 286.50°)
OKLaboklab(38.3% -0.0076 -0.0958)
OKLCHoklch(38.3% 0.096 265.4)
XYZxyz(6.0571, 5.4665, 17.8720)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4076 #76602A
analogous
#2A6676 #2A4076 #3A2A76
triadic
#2A4076 #762A40 #40762A
tetradic
#2A4076 #762A66 #76602A #2A763A
square
#2A4076 #762A66 #76602A #2A763A
split-complementary
#2A4076 #763A2A #66762A
monochromatic
#0A0F1C #1A2849 #2A4076 #3A58A3 #5776C3

Accessibility & contrast

On white

10.03
#2A4076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2A4076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4076
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4076#FFFFFF#000000##FFFFFF
##2A40761.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274678
Deuteranopia (green-blind)
#1C3F75
Tritanopia (blue-blind)
#004C55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a4076;
/* rgb */ color: rgb(42, 64, 118);
/* oklch */ color: oklch(38.3% 0.096 265.4);
Tailwind
colors: {
  custom: {
    50: '#6b749e',
    500: '#2a4076',
    950: '#000000',
  },
}
SCSS
$custom: #2a4076;
$custom-light: #6b749e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4076",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 118
  },
  "hsl": {
    "h": 222.632,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38295,
    "c": 0.09612,
    "h": 265.4
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#2A4076
secondary
#A89054
accent
#B051D7
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A4076

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

Preview Lab → · Contrast checker → · Palette generator →

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