#2A3772#2A3772

#2A3772 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.0% C 0.102 H 271.1°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2A3772
RGBrgb(42, 55, 114)
HSLhsl(229, 46%, 31%)
HSVhsv(229, 63%, 45%)
CMYKcmyk(63.2%, 51.8%, 0%, 55.3%)
CIE-LABlab(25.07, 14.67, -35.79)
CIE-LCHlch(25.07, 38.68, 292.29°)
OKLaboklab(35.96% 0.0019 -0.1024)
OKLCHoklch(35.96% 0.102 271.1)
XYZxyz(5.3573, 4.4391, 16.4908)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3772 #72652A
analogous
#2A5B72 #2A3772 #412A72
triadic
#2A3772 #722A37 #37722A
tetradic
#2A3772 #722A5B #72652A #2A7241
square
#2A3772 #722A5B #72652A #2A7241
split-complementary
#2A3772 #72412A #5B722A
monochromatic
#090C19 #1A2145 #2A3772 #3A4D9F #5669C1

Accessibility & contrast

On white

11.12
#2A3772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A3772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3772
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3772#FFFFFF#000000##FFFFFF
##2A37721.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183F74
Deuteranopia (green-blind)
#0A3871
Tritanopia (blue-blind)
#00444F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a3772;
/* rgb */ color: rgb(42, 55, 114);
/* oklch */ color: oklch(36.0% 0.102 271.1);
Tailwind
colors: {
  custom: {
    50: '#6b6d9b',
    500: '#2a3772',
    950: '#000000',
  },
}
SCSS
$custom: #2a3772;
$custom-light: #6b6d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3772",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 114
  },
  "hsl": {
    "h": 229.167,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35956,
    "c": 0.1024,
    "h": 271.1
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#2A3772
secondary
#A49554
accent
#BE52D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3772

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

Preview Lab → · Contrast checker → · Palette generator →

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