#2A37A6#2A37A6

#2A37A6 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.177 H 270.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2A37A6
RGBrgb(42, 55, 166)
HSLhsl(234, 60%, 41%)
HSVhsv(234, 75%, 65%)
CMYKcmyk(74.7%, 66.9%, 0%, 34.9%)
CIE-LABlab(29.35, 34.09, -61.04)
CIE-LCHlch(29.35, 69.92, 299.19°)
OKLaboklab(40.47% 0.0023 -0.1765)
OKLCHoklch(40.47% 0.177 270.7)
XYZxyz(9.2016, 5.9768, 36.7377)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A6 #A6992A
analogous
#2A75A6 #2A37A6 #5B2AA6
triadic
#2A37A6 #A62A37 #37A62A
tetradic
#2A37A6 #A62A75 #A6992A #2AA65B
square
#2A37A6 #A62A75 #A6992A #2AA65B
split-complementary
#2A37A6 #A65B2A #75A62A
monochromatic
#111744 #1E2775 #2A37A6 #3F4ECE #707BDB

Accessibility & contrast

On white

9.56
#2A37A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A37A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A6
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A6#FFFFFF#000000##FFFFFF
##2A37A61.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a37a6;
/* rgb */ color: rgb(42, 55, 166);
/* oklch */ color: oklch(40.5% 0.177 270.7);
Tailwind
colors: {
  custom: {
    50: '#776ec1',
    500: '#2a37a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a6;
$custom-light: #776ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a6",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 166
  },
  "hsl": {
    "h": 233.71,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40473,
    "c": 0.17653,
    "h": 270.7
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A37A6

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

Preview Lab → · Contrast checker → · Palette generator →

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