#2A37B7#2A37B7

#2A37B7 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.198 H 270.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#2A37B7
RGBrgb(42, 55, 183)
HSLhsl(234, 63%, 44%)
HSVhsv(234, 77%, 72%)
CMYKcmyk(77%, 69.9%, 0%, 28.2%)
CIE-LABlab(30.98, 40.17, -68.53)
CIE-LCHlch(30.98, 79.43, 300.38°)
OKLaboklab(42.14% 0.0007 -0.1984)
OKLCHoklch(42.14% 0.198 270.2)
XYZxyz(10.8654, 6.6423, 45.5000)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A37B7 #B7AA2A
analogous
#2A7EB7 #2A37B7 #642AB7
triadic
#2A37B7 #B72A37 #37B72A
tetradic
#2A37B7 #B72A7E #B7AA2A #2AB764
square
#2A37B7 #B72A7E #B7AA2A #2AB764
split-complementary
#2A37B7 #B7642A #7EB72A
monochromatic
#131953 #1F2885 #2A37B7 #4956D5 #7B84E1

Accessibility & contrast

On white

9.02
#2A37B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2A37B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A37B7
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A37B7#FFFFFF#000000##FFFFFF
##2A37B71.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a37b7;
/* rgb */ color: rgb(42, 55, 183);
/* oklch */ color: oklch(42.1% 0.198 270.2);
Tailwind
colors: {
  custom: {
    50: '#7b6ece',
    500: '#2a37b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a37b7;
$custom-light: #7b6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2a37b7",
  "rgb": {
    "r": 42,
    "g": 55,
    "b": 183
  },
  "hsl": {
    "h": 234.468,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42144,
    "c": 0.1984,
    "h": 270.2
  },
  "luminance": 0.06644
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A37B7

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

Preview Lab → · Contrast checker → · Palette generator →

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