#2A37A2#2A37A2

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

Color values

HEX#2A37A2
RGBrgb(42, 55, 162)
HSLhsl(234, 59%, 40%)
HSVhsv(234, 74%, 64%)
CMYKcmyk(74.1%, 66%, 0%, 36.5%)
CIE-LABlab(28.99, 32.64, -59.23)
CIE-LCHlch(28.99, 67.63, 298.86°)
OKLaboklab(40.09% 0.0026 -0.1712)
OKLCHoklch(40.09% 0.171 270.9)
XYZxyz(8.8404, 5.8323, 34.8353)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A2 #A2952A
analogous
#2A73A2 #2A37A2 #592AA2
triadic
#2A37A2 #A22A37 #37A22A
tetradic
#2A37A2 #A22A73 #A2952A #2AA259
square
#2A37A2 #A22A73 #A2952A #2AA259
split-complementary
#2A37A2 #A2592A #73A22A
monochromatic
#111641 #1D2671 #2A37A2 #3D4CCD #6D79D9

Accessibility & contrast

On white

9.69
#2A37A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A37A2
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A2#FFFFFF#000000##FFFFFF
##2A37A21.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a37a2;
/* rgb */ color: rgb(42, 55, 162);
/* oklch */ color: oklch(40.1% 0.171 270.9);
Tailwind
colors: {
  custom: {
    50: '#766ebf',
    500: '#2a37a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a2;
$custom-light: #766ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a2",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 233.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.40091,
    "c": 0.17124,
    "h": 270.9
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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