#2A37AB#2A37AB

#2A37AB is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.183 H 270.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2A37AB
RGBrgb(42, 55, 171)
HSLhsl(234, 61%, 42%)
HSVhsv(234, 75%, 67%)
CMYKcmyk(75.4%, 67.8%, 0%, 32.9%)
CIE-LABlab(29.82, 35.90, -63.27)
CIE-LCHlch(29.82, 72.75, 299.57°)
OKLaboklab(40.96% 0.0019 -0.1831)
OKLCHoklch(40.96% 0.183 270.6)
XYZxyz(9.6692, 6.1639, 39.2003)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37AB #AB9E2A
analogous
#2A78AB #2A37AB #5D2AAB
triadic
#2A37AB #AB2A37 #37AB2A
tetradic
#2A37AB #AB2A78 #AB9E2A #2AAB5D
square
#2A37AB #AB2A78 #AB9E2A #2AAB5D
split-complementary
#2A37AB #AB5D2A #78AB2A
monochromatic
#121749 #1E277A #2A37AB #4250D1 #737DDD

Accessibility & contrast

On white

9.40
#2A37AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2A37AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37AB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37AB#FFFFFF#000000##FFFFFF
##2A37AB1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a37ab;
/* rgb */ color: rgb(42, 55, 171);
/* oklch */ color: oklch(41.0% 0.183 270.6);
Tailwind
colors: {
  custom: {
    50: '#786ec5',
    500: '#2a37ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a37ab;
$custom-light: #786ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37ab",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 233.953,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40957,
    "c": 0.18307,
    "h": 270.6
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#2A37AB
secondary
#C4BB6D
accent
#D444E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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