#2A37A8#2A37A8

#2A37A8 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.7% C 0.179 H 270.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2A37A8
RGBrgb(42, 55, 168)
HSLhsl(234, 60%, 41%)
HSVhsv(234, 75%, 66%)
CMYKcmyk(75%, 67.3%, 0%, 34.1%)
CIE-LABlab(29.54, 34.82, -61.94)
CIE-LCHlch(29.54, 71.05, 299.34°)
OKLaboklab(40.67% 0.0021 -0.1791)
OKLCHoklch(40.67% 0.179 270.7)
XYZxyz(9.3865, 6.0508, 37.7114)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A8 #A89B2A
analogous
#2A76A8 #2A37A8 #5C2AA8
triadic
#2A37A8 #A82A37 #37A82A
tetradic
#2A37A8 #A82A76 #A89B2A #2AA85C
square
#2A37A8 #A82A76 #A89B2A #2AA85C
split-complementary
#2A37A8 #A85C2A #76A82A
monochromatic
#121746 #1E2777 #2A37A8 #404FCF #717CDB

Accessibility & contrast

On white

9.50
#2A37A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A37A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A8
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A8#FFFFFF#000000##FFFFFF
##2A37A81.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a37a8;
/* rgb */ color: rgb(42, 55, 168);
/* oklch */ color: oklch(40.7% 0.179 270.7);
Tailwind
colors: {
  custom: {
    50: '#776ec3',
    500: '#2a37a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a8;
$custom-light: #776ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a8",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 233.81,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40666,
    "c": 0.17916,
    "h": 270.7
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#2A37A8
secondary
#C3BA6B
accent
#D345E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A37A8

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

Preview Lab → · Contrast checker → · Palette generator →

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