#2A37AA#2A37AA

#2A37AA is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.182 H 270.6°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2A37AA
RGBrgb(42, 55, 170)
HSLhsl(234, 60%, 42%)
HSVhsv(234, 75%, 67%)
CMYKcmyk(75.3%, 67.6%, 0%, 33.3%)
CIE-LABlab(29.73, 35.54, -62.83)
CIE-LCHlch(29.73, 72.19, 299.50°)
OKLaboklab(40.86% 0.002 -0.1818)
OKLCHoklch(40.86% 0.182 270.6)
XYZxyz(9.5743, 6.1259, 38.7002)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37AA #AA9D2A
analogous
#2A77AA #2A37AA #5D2AAA
triadic
#2A37AA #AA2A37 #37AA2A
tetradic
#2A37AA #AA2A77 #AA9D2A #2AAA5D
square
#2A37AA #AA2A77 #AA9D2A #2AAA5D
split-complementary
#2A37AA #AA5D2A #77AA2A
monochromatic
#121748 #1E2779 #2A37AA #4150D0 #727DDC

Accessibility & contrast

On white

9.44
#2A37AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A37AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37AA
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37AA#FFFFFF#000000##FFFFFF
##2A37AA1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0040A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a37aa;
/* rgb */ color: rgb(42, 55, 170);
/* oklch */ color: oklch(40.9% 0.182 270.6);
Tailwind
colors: {
  custom: {
    50: '#786ec4',
    500: '#2a37aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a37aa;
$custom-light: #786ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37aa",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 170
  },
  "hsl": {
    "h": 233.906,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40859,
    "c": 0.18177,
    "h": 270.6
  },
  "luminance": 0.06127
}

Semantic roles & 50–950 ramp

primary
#2A37AA
secondary
#C3BB6C
accent
#D344E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A37AA

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

Preview Lab → · Contrast checker → · Palette generator →

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