#2A37A3#2A37A3

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

Color values

HEX#2A37A3
RGBrgb(42, 55, 163)
HSLhsl(234, 59%, 40%)
HSVhsv(234, 74%, 64%)
CMYKcmyk(74.2%, 66.3%, 0%, 36.1%)
CIE-LABlab(29.08, 33.00, -59.68)
CIE-LCHlch(29.08, 68.20, 298.94°)
OKLaboklab(40.19% 0.0025 -0.1725)
OKLCHoklch(40.19% 0.173 270.8)
XYZxyz(8.9296, 5.8680, 35.3053)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A3 #A3962A
analogous
#2A73A3 #2A37A3 #5A2AA3
triadic
#2A37A3 #A32A37 #37A32A
tetradic
#2A37A3 #A32A73 #A3962A #2AA35A
square
#2A37A3 #A32A73 #A3962A #2AA35A
split-complementary
#2A37A3 #A35A2A #73A32A
monochromatic
#111642 #1D2772 #2A37A3 #3D4DCD #6E79DA

Accessibility & contrast

On white

9.66
#2A37A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A37A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A3
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A3#FFFFFF#000000##FFFFFF
##2A37A31.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#003FA1
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a37a3;
/* rgb */ color: rgb(42, 55, 163);
/* oklch */ color: oklch(40.2% 0.173 270.8);
Tailwind
colors: {
  custom: {
    50: '#766ebf',
    500: '#2a37a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a3;
$custom-light: #766ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a3",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 233.554,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40186,
    "c": 0.17257,
    "h": 270.8
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A37A3

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

Preview Lab → · Contrast checker → · Palette generator →

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