#2A4071#2A4071

#2A4071 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.088 H 264.4°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2A4071
RGBrgb(42, 64, 113)
HSLhsl(221, 46%, 30%)
HSVhsv(221, 63%, 44%)
CMYKcmyk(62.8%, 43.4%, 0%, 55.7%)
CIE-LABlab(27.71, 8.07, -30.94)
CIE-LCHlch(27.71, 31.97, 284.63°)
OKLaboklab(37.95% -0.0087 -0.088)
OKLCHoklch(37.95% 0.088 264.4)
XYZxyz(5.7679, 5.3508, 16.3484)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4071 #715B2A
analogous
#2A6371 #2A4071 #372A71
triadic
#2A4071 #712A40 #40712A
tetradic
#2A4071 #712A63 #715B2A #2A7137
square
#2A4071 #712A63 #715B2A #2A7137
split-complementary
#2A4071 #71372A #63712A
monochromatic
#090D18 #192744 #2A4071 #3B599E #5576C0

Accessibility & contrast

On white

10.14
#2A4071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A4071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4071
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4071#FFFFFF#000000##FFFFFF
##2A40711.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#213E70
Tritanopia (blue-blind)
#004B53
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4071;
/* rgb */ color: rgb(42, 64, 113);
/* oklch */ color: oklch(38.0% 0.088 264.4);
Tailwind
colors: {
  custom: {
    50: '#6a749a',
    500: '#2a4071',
    950: '#000000',
  },
}
SCSS
$custom: #2a4071;
$custom-light: #6a749a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4071",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 113
  },
  "hsl": {
    "h": 221.408,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37953,
    "c": 0.08843,
    "h": 264.4
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#2A4071
secondary
#A38A54
accent
#AD52D5
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2A4071

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

Preview Lab → · Contrast checker → · Palette generator →

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