#2A37A0#2A37A0

#2A37A0 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.169 H 270.9°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2A37A0
RGBrgb(42, 55, 160)
HSLhsl(233, 58%, 40%)
HSVhsv(233, 74%, 63%)
CMYKcmyk(73.8%, 65.6%, 0%, 37.3%)
CIE-LABlab(28.80, 31.91, -58.31)
CIE-LCHlch(28.80, 66.47, 298.69°)
OKLaboklab(39.9% 0.0027 -0.1685)
OKLCHoklch(39.9% 0.169 270.9)
XYZxyz(8.6640, 5.7618, 33.9064)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37A0 #A0932A
analogous
#2A72A0 #2A37A0 #582AA0
triadic
#2A37A0 #A02A37 #37A02A
tetradic
#2A37A0 #A02A72 #A0932A #2AA058
square
#2A37A0 #A02A72 #A0932A #2AA058
split-complementary
#2A37A0 #A0582A #72A02A
monochromatic
#11163F #1D2670 #2A37A0 #3C4BCC #6C78D8

Accessibility & contrast

On white

9.76
#2A37A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A37A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37A0
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37A0#FFFFFF#000000##FFFFFF
##2A37A01.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a37a0;
/* rgb */ color: rgb(42, 55, 160);
/* oklch */ color: oklch(39.9% 0.169 270.9);
Tailwind
colors: {
  custom: {
    50: '#756ebd',
    500: '#2a37a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a37a0;
$custom-light: #756ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37a0",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 160
  },
  "hsl": {
    "h": 233.39,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39902,
    "c": 0.16857,
    "h": 270.9
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#2A37A0
secondary
#BFB567
accent
#D146E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A37A0

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

Preview Lab → · Contrast checker → · Palette generator →

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