#2A37A5#2A37A5

#2A37A5 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.4% C 0.175 H 270.8°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2A37A5
RGBrgb(42, 55, 165)
HSLhsl(234, 59%, 41%)
HSVhsv(234, 75%, 65%)
CMYKcmyk(74.5%, 66.7%, 0%, 35.3%)
CIE-LABlab(29.26, 33.73, -60.59)
CIE-LCHlch(29.26, 69.34, 299.11°)
OKLaboklab(40.38% 0.0024 -0.1752)
OKLCHoklch(40.38% 0.175 270.8)
XYZxyz(9.1103, 5.9403, 36.2565)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A5 #A5982A
analogous
#2A74A5 #2A37A5 #5B2AA5
triadic
#2A37A5 #A52A37 #37A52A
tetradic
#2A37A5 #A52A74 #A5982A #2AA55B
square
#2A37A5 #A52A74 #A5982A #2AA55B
split-complementary
#2A37A5 #A55B2A #74A52A
monochromatic
#111643 #1E2774 #2A37A5 #3E4DCE #6F7ADA

Accessibility & contrast

On white

9.60
#2A37A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A37A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A5
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A5#FFFFFF#000000##FFFFFF
##2A37A51.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a37a5;
/* rgb */ color: rgb(42, 55, 165);
/* oklch */ color: oklch(40.4% 0.175 270.8);
Tailwind
colors: {
  custom: {
    50: '#776ec1',
    500: '#2a37a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a5;
$custom-light: #776ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a5",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 233.659,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40377,
    "c": 0.17522,
    "h": 270.8
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#2A37A5
secondary
#C1B869
accent
#D245E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A37A5

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

Preview Lab → · Contrast checker → · Palette generator →

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