#2A3671#2A3671

#2A3671 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.7% C 0.102 H 271.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2A3671
RGBrgb(42, 54, 113)
HSLhsl(230, 46%, 30%)
HSVhsv(230, 63%, 44%)
CMYKcmyk(62.8%, 52.2%, 0%, 55.7%)
CIE-LABlab(24.71, 14.99, -35.74)
CIE-LCHlch(24.71, 38.75, 292.76°)
OKLaboklab(35.66% 0.0029 -0.1022)
OKLCHoklch(35.66% 0.102 271.6)
XYZxyz(5.2537, 4.3224, 16.1770)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3671 #71652A
analogous
#2A5971 #2A3671 #412A71
triadic
#2A3671 #712A36 #36712A
tetradic
#2A3671 #712A59 #71652A #2A7141
square
#2A3671 #712A59 #71652A #2A7141
split-complementary
#2A3671 #71412A #59712A
monochromatic
#090B18 #192144 #2A3671 #3B4B9E #5567C0

Accessibility & contrast

On white

11.26
#2A3671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A3671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3671
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3671#FFFFFF#000000##FFFFFF
##2A36711.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#093870
Tritanopia (blue-blind)
#00434E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3671;
/* rgb */ color: rgb(42, 54, 113);
/* oklch */ color: oklch(35.7% 0.102 271.6);
Tailwind
colors: {
  custom: {
    50: '#6b6c9a',
    500: '#2a3671',
    950: '#000000',
  },
}
SCSS
$custom: #2a3671;
$custom-light: #6b6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3671",
  "rgb": {
    "r": 42,
    "g": 54,
    "b": 113
  },
  "hsl": {
    "h": 229.859,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35658,
    "c": 0.10228,
    "h": 271.6
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#2A3671
secondary
#A39654
accent
#BF52D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3671

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

Preview Lab → · Contrast checker → · Palette generator →

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