#2A37A1#2A37A1

#2A37A1 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.170 H 270.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2A37A1
RGBrgb(42, 55, 161)
HSLhsl(233, 59%, 40%)
HSVhsv(233, 74%, 63%)
CMYKcmyk(73.9%, 65.8%, 0%, 36.9%)
CIE-LABlab(28.89, 32.27, -58.77)
CIE-LCHlch(28.89, 67.05, 298.77°)
OKLaboklab(40% 0.0027 -0.1699)
OKLCHoklch(40% 0.17 270.9)
XYZxyz(8.7519, 5.7969, 34.3690)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A1 #A1942A
analogous
#2A73A1 #2A37A1 #582AA1
triadic
#2A37A1 #A12A37 #37A12A
tetradic
#2A37A1 #A12A73 #A1942A #2AA158
square
#2A37A1 #A12A73 #A1942A #2AA158
split-complementary
#2A37A1 #A1582A #73A12A
monochromatic
#111640 #1D2670 #2A37A1 #3C4CCC #6D78D9

Accessibility & contrast

On white

9.72
#2A37A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A37A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A1
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A1#FFFFFF#000000##FFFFFF
##2A37A11.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a37a1;
/* rgb */ color: rgb(42, 55, 161);
/* oklch */ color: oklch(40.0% 0.170 270.9);
Tailwind
colors: {
  custom: {
    50: '#766ebe',
    500: '#2a37a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a1;
$custom-light: #766ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a1",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 161
  },
  "hsl": {
    "h": 233.445,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39996,
    "c": 0.16991,
    "h": 270.9
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#2A37A1
secondary
#C0B667
accent
#D146E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A37A1

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

Preview Lab → · Contrast checker → · Palette generator →

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