#2240B4#2240B4

#2240B4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.186 H 266.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2240B4
RGBrgb(34, 64, 180)
HSLhsl(228, 68%, 42%)
HSVhsv(228, 81%, 71%)
CMYKcmyk(81.1%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.48, 32.66, -64.29)
CIE-LCHlch(32.48, 72.11, 296.93°)
OKLaboklab(43.06% -0.0108 -0.1861)
OKLCHoklch(43.06% 0.186 266.7)
XYZxyz(10.7284, 7.3009, 44.0149)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240B4 #B49622
analogous
#2289B4 #2240B4 #4D22B4
triadic
#2240B4 #B42240 #40B422
tetradic
#2240B4 #B42289 #B49622 #22B44D
square
#2240B4 #B42289 #B49622 #22B44D
split-complementary
#2240B4 #B44D22 #89B422
monochromatic
#0F1B4D #182E81 #2240B4 #3A5ADA #6D85E3

Accessibility & contrast

On white

8.54
#2240B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2240B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240B4
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240B4#FFFFFF#000000##FFFFFF
##2240B41.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2240b4;
/* rgb */ color: rgb(34, 64, 180);
/* oklch */ color: oklch(43.1% 0.186 266.7);
Tailwind
colors: {
  custom: {
    50: '#7774cb',
    500: '#2240b4',
    950: '#000000',
  },
}
SCSS
$custom: #2240b4;
$custom-light: #7774cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2240b4",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 227.671,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43059,
    "c": 0.18644,
    "h": 266.7
  },
  "luminance": 0.07302
}

Semantic roles & 50–950 ramp

primary
#2240B4
secondary
#CAB668
accent
#C73DEB
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2240B4

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

Preview Lab → · Contrast checker → · Palette generator →

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