#2237A8#2237A8

#2237A8 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.181 H 268.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2237A8
RGBrgb(34, 55, 168)
HSLhsl(231, 66%, 40%)
HSVhsv(231, 80%, 66%)
CMYKcmyk(79.8%, 67.3%, 0%, 34.1%)
CIE-LABlab(29.16, 34.03, -62.58)
CIE-LCHlch(29.16, 71.24, 298.54°)
OKLaboklab(40.28% -0.0056 -0.1812)
OKLCHoklch(40.28% 0.181 268.2)
XYZxyz(9.0913, 5.8986, 37.6976)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2237A8 #A89322
analogous
#227AA8 #2237A8 #5022A8
triadic
#2237A8 #A82237 #37A822
tetradic
#2237A8 #A8227A #A89322 #22A850
square
#2237A8 #A8227A #A89322 #22A850
split-complementary
#2237A8 #A85022 #7AA822
monochromatic
#0D1642 #182675 #2237A8 #324BD5 #6578E0

Accessibility & contrast

On white

9.63
#2237A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2237A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2237A8
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2237A8#FFFFFF#000000##FFFFFF
##2237A81.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2237a8;
/* rgb */ color: rgb(34, 55, 168);
/* oklch */ color: oklch(40.3% 0.181 268.2);
Tailwind
colors: {
  custom: {
    50: '#756ec3',
    500: '#2237a8',
    950: '#000000',
  },
}
SCSS
$custom: #2237a8;
$custom-light: #756ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2237a8",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 230.597,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40279,
    "c": 0.18129,
    "h": 268.2
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#2237A8
secondary
#C5B561
accent
#CF3FE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2237A8

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

Preview Lab → · Contrast checker → · Palette generator →

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