#2A3971#2A3971

#2A3971 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.098 H 269.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2A3971
RGBrgb(42, 57, 113)
HSLhsl(227, 46%, 30%)
HSVhsv(227, 63%, 44%)
CMYKcmyk(62.8%, 49.6%, 0%, 55.7%)
CIE-LABlab(25.59, 12.90, -34.32)
CIE-LCHlch(25.59, 36.66, 290.60°)
OKLaboklab(36.33% -0.0005 -0.098)
OKLCHoklch(36.33% 0.098 269.7)
XYZxyz(5.3976, 4.6103, 16.2250)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3971 #71622A
analogous
#2A5C71 #2A3971 #3E2A71
triadic
#2A3971 #712A39 #39712A
tetradic
#2A3971 #712A5C #71622A #2A713E
square
#2A3971 #712A5C #71622A #2A713E
split-complementary
#2A3971 #713E2A #5C712A
monochromatic
#090C18 #192244 #2A3971 #3B509E #556CC0

Accessibility & contrast

On white

10.92
#2A3971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A3971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3971
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3971#FFFFFF#000000##FFFFFF
##2A39711.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#123A70
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3971;
/* rgb */ color: rgb(42, 57, 113);
/* oklch */ color: oklch(36.3% 0.098 269.7);
Tailwind
colors: {
  custom: {
    50: '#6b6f9a',
    500: '#2a3971',
    950: '#000000',
  },
}
SCSS
$custom: #2a3971;
$custom-light: #6b6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3971",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 113
  },
  "hsl": {
    "h": 227.324,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3633,
    "c": 0.09802,
    "h": 269.7
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#2A3971
secondary
#A39254
accent
#BA52D5
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3971

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

Preview Lab → · Contrast checker → · Palette generator →

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