#2A37B8#2A37B8

#2A37B8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.200 H 270.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#2A37B8
RGBrgb(42, 55, 184)
HSLhsl(235, 63%, 44%)
HSVhsv(235, 77%, 72%)
CMYKcmyk(77.2%, 70.1%, 0%, 27.8%)
CIE-LABlab(31.08, 40.52, -68.96)
CIE-LCHlch(31.08, 79.98, 300.44°)
OKLaboklab(42.25% 0.0006 -0.1996)
OKLCHoklch(42.25% 0.2 270.2)
XYZxyz(10.9698, 6.6841, 46.0501)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37B8 #B8AB2A
analogous
#2A7EB8 #2A37B8 #642AB8
triadic
#2A37B8 #B82A37 #37B82A
tetradic
#2A37B8 #B82A7E #B8AB2A #2AB864
square
#2A37B8 #B82A7E #B8AB2A #2AB864
split-complementary
#2A37B8 #B8642A #7EB82A
monochromatic
#131954 #1F2886 #2A37B8 #4A56D6 #7B85E1

Accessibility & contrast

On white

8.99
#2A37B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A37B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37B8
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37B8#FFFFFF#000000##FFFFFF
##2A37B81.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0042B6
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a37b8;
/* rgb */ color: rgb(42, 55, 184);
/* oklch */ color: oklch(42.2% 0.200 270.2);
Tailwind
colors: {
  custom: {
    50: '#7b6ecf',
    500: '#2a37b8',
    950: '#000000',
  },
}
SCSS
$custom: #2a37b8;
$custom-light: #7b6ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37b8",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 184
  },
  "hsl": {
    "h": 234.507,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42245,
    "c": 0.19965,
    "h": 270.2
  },
  "luminance": 0.06685
}

Semantic roles & 50–950 ramp

primary
#2A37B8
secondary
#C9C175
accent
#D742E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A37B8

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

Preview Lab → · Contrast checker → · Palette generator →

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