#2A3973#2A3973

#2A3973 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.101 H 269.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2A3973
RGBrgb(42, 57, 115)
HSLhsl(228, 46%, 31%)
HSVhsv(228, 63%, 45%)
CMYKcmyk(63.5%, 50.4%, 0%, 54.9%)
CIE-LABlab(25.73, 13.65, -35.37)
CIE-LCHlch(25.73, 37.92, 291.11°)
OKLaboklab(36.48% -0.0002 -0.1011)
OKLCHoklch(36.48% 0.101 269.9)
XYZxyz(5.5114, 4.6558, 16.8246)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3973 #73642A
analogous
#2A5D73 #2A3973 #3F2A73
triadic
#2A3973 #732A39 #39732A
tetradic
#2A3973 #732A5D #73642A #2A733F
square
#2A3973 #732A5D #73642A #2A733F
split-complementary
#2A3973 #733F2A #5D732A
monochromatic
#090D19 #1A2346 #2A3973 #3A4FA0 #566CC1

Accessibility & contrast

On white

10.87
#2A3973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2A3973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3973
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3973#FFFFFF#000000##FFFFFF
##2A39731.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4075
Deuteranopia (green-blind)
#0F3A72
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a3973;
/* rgb */ color: rgb(42, 57, 115);
/* oklch */ color: oklch(36.5% 0.101 269.9);
Tailwind
colors: {
  custom: {
    50: '#6b6f9c',
    500: '#2a3973',
    950: '#000000',
  },
}
SCSS
$custom: #2a3973;
$custom-light: #6b6f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3973",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 115
  },
  "hsl": {
    "h": 227.671,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36477,
    "c": 0.10112,
    "h": 269.9
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#2A3973
secondary
#A59454
accent
#BB52D6
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2A3973

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

Preview Lab → · Contrast checker → · Palette generator →

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