#2240A1#2240A1

#2240A1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.161 H 266.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#2240A1
RGBrgb(34, 64, 161)
HSLhsl(226, 65%, 38%)
HSVhsv(226, 79%, 63%)
CMYKcmyk(78.9%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.83, 25.40, -55.62)
CIE-LCHlch(30.83, 61.15, 294.55°)
OKLaboklab(41.32% -0.0108 -0.1607)
OKLCHoklch(41.32% 0.161 266.2)
XYZxyz(8.9238, 6.5791, 34.5109)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A1 #A18322
analogous
#227FA1 #2240A1 #4422A1
triadic
#2240A1 #A12240 #40A122
tetradic
#2240A1 #A1227F #A18322 #22A144
square
#2240A1 #A1227F #A18322 #22A144
split-complementary
#2240A1 #A14422 #7FA122
monochromatic
#0D183C #172C6E #2240A1 #2D54D3 #607EDD

Accessibility & contrast

On white

9.07
#2240A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2240A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A1
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A1#FFFFFF#000000##FFFFFF
##2240A11.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2240a1;
/* rgb */ color: rgb(34, 64, 161);
/* oklch */ color: oklch(41.3% 0.161 266.2);
Tailwind
colors: {
  custom: {
    50: '#7274be',
    500: '#2240a1',
    950: '#000000',
  },
}
SCSS
$custom: #2240a1;
$custom-light: #7274be;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a1",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 225.827,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41323,
    "c": 0.16109,
    "h": 266.2
  },
  "luminance": 0.0658
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2240A1

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

Preview Lab → · Contrast checker → · Palette generator →

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