#2240A7#2240A7

#2240A7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.169 H 266.4°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2240A7
RGBrgb(34, 64, 167)
HSLhsl(226, 66%, 39%)
HSVhsv(226, 80%, 65%)
CMYKcmyk(79.6%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.34, 27.72, -58.41)
CIE-LCHlch(31.34, 64.65, 295.39°)
OKLaboklab(41.86% -0.0107 -0.1689)
OKLCHoklch(41.86% 0.169 266.4)
XYZxyz(9.4657, 6.7958, 37.3646)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A7 #A78922
analogous
#2283A7 #2240A7 #4722A7
triadic
#2240A7 #A72240 #40A722
tetradic
#2240A7 #A72283 #A78922 #22A747
square
#2240A7 #A72283 #A78922 #22A747
split-complementary
#2240A7 #A74722 #83A722
monochromatic
#0D1941 #182D74 #2240A7 #3156D5 #6480DF

Accessibility & contrast

On white

8.90
#2240A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2240A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A7
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A7#FFFFFF#000000##FFFFFF
##2240A71.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2240a7;
/* rgb */ color: rgb(34, 64, 167);
/* oklch */ color: oklch(41.9% 0.169 266.4);
Tailwind
colors: {
  custom: {
    50: '#7474c2',
    500: '#2240a7',
    950: '#000000',
  },
}
SCSS
$custom: #2240a7;
$custom-light: #7474c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a7",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 226.466,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4186,
    "c": 0.16923,
    "h": 266.4
  },
  "luminance": 0.06797
}

Semantic roles & 50–950 ramp

primary
#2240A7
secondary
#C5AE60
accent
#C33FE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2240A7

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

Preview Lab → · Contrast checker → · Palette generator →

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