#2237A1#2237A1

#2237A1 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.172 H 268.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2237A1
RGBrgb(34, 55, 161)
HSLhsl(230, 65%, 38%)
HSVhsv(230, 79%, 63%)
CMYKcmyk(78.9%, 65.8%, 0%, 36.9%)
CIE-LABlab(28.50, 31.41, -59.44)
CIE-LCHlch(28.50, 67.23, 297.86°)
OKLaboklab(39.6% -0.0052 -0.172)
OKLCHoklch(39.6% 0.172 268.3)
XYZxyz(8.4567, 5.6447, 34.3551)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2237A1 #A18C22
analogous
#2276A1 #2237A1 #4D22A1
triadic
#2237A1 #A12237 #37A122
tetradic
#2237A1 #A12276 #A18C22 #22A14D
square
#2237A1 #A12276 #A18C22 #22A14D
split-complementary
#2237A1 #A14D22 #76A122
monochromatic
#0D143C #17266E #2237A1 #2D49D3 #6075DD

Accessibility & contrast

On white

9.86
#2237A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2237A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2237A1
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2237A1#FFFFFF#000000##FFFFFF
##2237A11.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2237a1;
/* rgb */ color: rgb(34, 55, 161);
/* oklch */ color: oklch(39.6% 0.172 268.3);
Tailwind
colors: {
  custom: {
    50: '#736dbe',
    500: '#2237a1',
    950: '#000000',
  },
}
SCSS
$custom: #2237a1;
$custom-light: #736dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2237a1",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 161
  },
  "hsl": {
    "h": 230.079,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39597,
    "c": 0.17209,
    "h": 268.3
  },
  "luminance": 0.05646
}

Semantic roles & 50–950 ramp

primary
#2237A1
secondary
#C2B15D
accent
#CC40E8
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #2237A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2237A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva