#2240C4#2240C4

#2240C4 is a dark, highly saturated blue. Relative luminance 0.080; OKLCH L 44.6% C 0.207 H 266.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#2240C4
RGBrgb(34, 64, 196)
HSLhsl(229, 70%, 45%)
HSVhsv(229, 83%, 77%)
CMYKcmyk(82.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(33.96, 38.59, -71.28)
CIE-LCHlch(33.96, 81.06, 298.43°)
OKLaboklab(44.6% -0.0115 -0.2065)
OKLCHoklch(44.6% 0.207 266.8)
XYZxyz(12.4534, 7.9909, 53.0999)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240C4 #C4A622
analogous
#2291C4 #2240C4 #5522C4
triadic
#2240C4 #C42240 #40C422
tetradic
#2240C4 #C42291 #C4A622 #22C455
square
#2240C4 #C42291 #C4A622 #22C455
split-complementary
#2240C4 #C45522 #91C422
monochromatic
#101E5C #192F90 #2240C4 #4561DF #798DE8

Accessibility & contrast

On white

8.08
#2240C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2240C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240C4
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240C4#FFFFFF#000000##FFFFFF
##2240C41.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0048C2
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2240c4;
/* rgb */ color: rgb(34, 64, 196);
/* oklch */ color: oklch(44.6% 0.207 266.8);
Tailwind
colors: {
  custom: {
    50: '#7b75d7',
    500: '#2240c4',
    950: '#000000',
  },
}
SCSS
$custom: #2240c4;
$custom-light: #7b75d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2240c4",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 228.889,
    "s": 70.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44597,
    "c": 0.20687,
    "h": 266.8
  },
  "luminance": 0.07992
}

Semantic roles & 50–950 ramp

primary
#2240C4
secondary
#CFBE73
accent
#CC3BED
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0815
muted
#7C7B83

Preview Lab

Preview with #2240C4

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

Preview Lab → · Contrast checker → · Palette generator →

#2240C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva