#2237AF#2237AF

#2237AF is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.190 H 268.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2237AF
RGBrgb(34, 55, 175)
HSLhsl(231, 67%, 41%)
HSVhsv(231, 81%, 69%)
CMYKcmyk(80.6%, 68.6%, 0%, 31.4%)
CIE-LABlab(29.83, 36.61, -65.67)
CIE-LCHlch(29.83, 75.19, 299.14°)
OKLaboklab(40.97% -0.0061 -0.1902)
OKLCHoklch(40.97% 0.19 268.2)
XYZxyz(9.7611, 6.1665, 41.2249)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2237AF #AF9A22
analogous
#227DAF #2237AF #5322AF
triadic
#2237AF #AF2237 #37AF22
tetradic
#2237AF #AF227D #AF9A22 #22AF53
square
#2237AF #AF227D #AF9A22 #22AF53
split-complementary
#2237AF #AF5322 #7DAF22
monochromatic
#0E1749 #18277C #2237AF #364ED8 #697BE2

Accessibility & contrast

On white

9.40
#2237AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2237AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2237AF
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2237AF#FFFFFF#000000##FFFFFF
##2237AF1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0040AD
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2237af;
/* rgb */ color: rgb(34, 55, 175);
/* oklch */ color: oklch(41.0% 0.190 268.2);
Tailwind
colors: {
  custom: {
    50: '#776ec8',
    500: '#2237af',
    950: '#000000',
  },
}
SCSS
$custom: #2237af;
$custom-light: #776ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2237af",
  "rgb": {
    "r": 34,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 231.064,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40974,
    "c": 0.19032,
    "h": 268.2
  },
  "luminance": 0.06168
}

Semantic roles & 50–950 ramp

primary
#2237AF
secondary
#C8B965
accent
#D13DEA
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2237AF

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

Preview Lab → · Contrast checker → · Palette generator →

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