#2A37B1#2A37B1

#2A37B1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.191 H 270.4°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2A37B1
RGBrgb(42, 55, 177)
HSLhsl(234, 62%, 43%)
HSVhsv(234, 76%, 69%)
CMYKcmyk(76.3%, 68.9%, 0%, 30.6%)
CIE-LABlab(30.39, 38.05, -65.92)
CIE-LCHlch(30.39, 76.11, 299.99°)
OKLaboklab(41.55% 0.0013 -0.1908)
OKLCHoklch(41.55% 0.191 270.4)
XYZxyz(10.2541, 6.3978, 42.2809)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37B1 #B1A42A
analogous
#2A7BB1 #2A37B1 #602AB1
triadic
#2A37B1 #B12A37 #37B12A
tetradic
#2A37B1 #B12A7B #B1A42A #2AB160
square
#2A37B1 #B12A7B #B1A42A #2AB160
split-complementary
#2A37B1 #B1602A #7BB12A
monochromatic
#13184E #1E2880 #2A37B1 #4553D3 #7781DF

Accessibility & contrast

On white

9.21
#2A37B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A37B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37B1
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37B1#FFFFFF#000000##FFFFFF
##2A37B11.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a37b1;
/* rgb */ color: rgb(42, 55, 177);
/* oklch */ color: oklch(41.5% 0.191 270.4);
Tailwind
colors: {
  custom: {
    50: '#7a6ec9',
    500: '#2a37b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a37b1;
$custom-light: #7a6ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37b1",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 234.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41546,
    "c": 0.19079,
    "h": 270.4
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#2A37B1
secondary
#C6BE70
accent
#D543E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A37B1

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

Preview Lab → · Contrast checker → · Palette generator →

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