#2237A0#2237A0

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

Color values

HEX#2237A0
RGBrgb(34, 55, 160)
HSLhsl(230, 65%, 38%)
HSVhsv(230, 79%, 63%)
CMYKcmyk(78.8%, 65.6%, 0%, 37.3%)
CIE-LABlab(28.41, 31.04, -58.98)
CIE-LCHlch(28.41, 66.65, 297.75°)
OKLaboklab(39.5% -0.0052 -0.1707)
OKLCHoklch(39.5% 0.171 268.3)
XYZxyz(8.3688, 5.6096, 33.8926)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2237A0 #A08B22
analogous
#2276A0 #2237A0 #4C22A0
triadic
#2237A0 #A02237 #37A022
tetradic
#2237A0 #A02276 #A08B22 #22A04C
square
#2237A0 #A02276 #A08B22 #22A04C
split-complementary
#2237A0 #A04C22 #76A022
monochromatic
#0D143B #17266E #2237A0 #2D48D2 #5F74DD

Accessibility & contrast

On white

9.90
#2237A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2237A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2237A0
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2237A0#FFFFFF#000000##FFFFFF
##2237A01.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2237a0;
/* rgb */ color: rgb(34, 55, 160);
/* oklch */ color: oklch(39.5% 0.171 268.3);
Tailwind
colors: {
  custom: {
    50: '#736dbd',
    500: '#2237a0',
    950: '#000000',
  },
}
SCSS
$custom: #2237a0;
$custom-light: #736dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2237a0",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 160
  },
  "hsl": {
    "h": 230,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39501,
    "c": 0.17076,
    "h": 268.3
  },
  "luminance": 0.05611
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2237A0

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

Preview Lab → · Contrast checker → · Palette generator →

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