#2A37B2#2A37B2

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

Color values

HEX#2A37B2
RGBrgb(42, 55, 178)
HSLhsl(234, 62%, 43%)
HSVhsv(234, 76%, 70%)
CMYKcmyk(76.4%, 69.1%, 0%, 30.2%)
CIE-LABlab(30.49, 38.40, -66.36)
CIE-LCHlch(30.49, 76.67, 300.06°)
OKLaboklab(41.65% 0.0012 -0.1921)
OKLCHoklch(41.65% 0.192 270.4)
XYZxyz(10.3542, 6.4378, 42.8078)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37B2 #B2A52A
analogous
#2A7BB2 #2A37B2 #612AB2
triadic
#2A37B2 #B22A37 #37B22A
tetradic
#2A37B2 #B22A7B #B2A52A #2AB261
square
#2A37B2 #B22A7B #B2A52A #2AB261
split-complementary
#2A37B2 #B2612A #7BB22A
monochromatic
#13184F #1E2880 #2A37B2 #4653D3 #7781DF

Accessibility & contrast

On white

9.18
#2A37B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2A37B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37B2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37B2#FFFFFF#000000##FFFFFF
##2A37B21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a37b2;
/* rgb */ color: rgb(42, 55, 178);
/* oklch */ color: oklch(41.6% 0.192 270.4);
Tailwind
colors: {
  custom: {
    50: '#7a6eca',
    500: '#2a37b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a37b2;
$custom-light: #7a6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37b2",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 234.265,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41645,
    "c": 0.19207,
    "h": 270.4
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#2A37B2
secondary
#C7BF71
accent
#D543E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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