#2240A0#2240A0

#2240A0 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.160 H 266.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2240A0
RGBrgb(34, 64, 160)
HSLhsl(226, 65%, 38%)
HSVhsv(226, 79%, 63%)
CMYKcmyk(78.8%, 60%, 0%, 37.3%)
CIE-LABlab(30.75, 25.02, -55.16)
CIE-LCHlch(30.75, 60.56, 294.40°)
OKLaboklab(41.23% -0.0108 -0.1594)
OKLCHoklch(41.23% 0.16 266.1)
XYZxyz(8.8360, 6.5439, 34.0483)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A0 #A08222
analogous
#227FA0 #2240A0 #4322A0
triadic
#2240A0 #A02240 #40A022
tetradic
#2240A0 #A0227F #A08222 #22A043
square
#2240A0 #A0227F #A08222 #22A043
split-complementary
#2240A0 #A04322 #7FA022
monochromatic
#0D183B #172C6E #2240A0 #2D54D2 #5F7DDD

Accessibility & contrast

On white

9.09
#2240A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2240A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A0
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A0#FFFFFF#000000##FFFFFF
##2240A01.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2240a0;
/* rgb */ color: rgb(34, 64, 160);
/* oklch */ color: oklch(41.2% 0.160 266.1);
Tailwind
colors: {
  custom: {
    50: '#7274bd',
    500: '#2240a0',
    950: '#000000',
  },
}
SCSS
$custom: #2240a0;
$custom-light: #7274bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a0",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 225.714,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41234,
    "c": 0.15973,
    "h": 266.1
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#2240A0
secondary
#C2AA5C
accent
#C040E8
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2240A0

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

Preview Lab → · Contrast checker → · Palette generator →

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