#2A37A9#2A37A9

#2A37A9 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.180 H 270.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2A37A9
RGBrgb(42, 55, 169)
HSLhsl(234, 60%, 41%)
HSVhsv(234, 75%, 66%)
CMYKcmyk(75.1%, 67.5%, 0%, 33.7%)
CIE-LABlab(29.63, 35.18, -62.38)
CIE-LCHlch(29.63, 71.62, 299.42°)
OKLaboklab(40.76% 0.0021 -0.1805)
OKLCHoklch(40.76% 0.18 270.7)
XYZxyz(9.4800, 6.0882, 38.2039)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A9 #A99C2A
analogous
#2A77A9 #2A37A9 #5D2AA9
triadic
#2A37A9 #A92A37 #37A92A
tetradic
#2A37A9 #A92A77 #A99C2A #2AA95D
square
#2A37A9 #A92A77 #A99C2A #2AA95D
split-complementary
#2A37A9 #A95D2A #77A92A
monochromatic
#121747 #1E2778 #2A37A9 #414FD0 #727CDC

Accessibility & contrast

On white

9.47
#2A37A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A37A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A9
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A9#FFFFFF#000000##FFFFFF
##2A37A91.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a37a9;
/* rgb */ color: rgb(42, 55, 169);
/* oklch */ color: oklch(40.8% 0.180 270.7);
Tailwind
colors: {
  custom: {
    50: '#786ec4',
    500: '#2a37a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a9;
$custom-light: #786ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a9",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 169
  },
  "hsl": {
    "h": 233.858,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40762,
    "c": 0.18047,
    "h": 270.7
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#2A37A9
secondary
#C3BA6C
accent
#D344E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A37A9

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

Preview Lab → · Contrast checker → · Palette generator →

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