#2240A2#2240A2

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

Color values

HEX#2240A2
RGBrgb(34, 64, 162)
HSLhsl(226, 65%, 38%)
HSVhsv(226, 79%, 64%)
CMYKcmyk(79%, 60.5%, 0%, 36.5%)
CIE-LABlab(30.91, 25.79, -56.09)
CIE-LCHlch(30.91, 61.74, 294.69°)
OKLaboklab(41.41% -0.0108 -0.1621)
OKLCHoklch(41.41% 0.162 266.2)
XYZxyz(9.0124, 6.6145, 34.9771)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A2 #A28422
analogous
#2280A2 #2240A2 #4422A2
triadic
#2240A2 #A22240 #40A222
tetradic
#2240A2 #A22280 #A28422 #22A244
square
#2240A2 #A22280 #A28422 #22A244
split-complementary
#2240A2 #A24422 #80A222
monochromatic
#0D183D #172C6F #2240A2 #2E55D3 #617EDE

Accessibility & contrast

On white

9.04
#2240A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2240A2
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A2#FFFFFF#000000##FFFFFF
##2240A21.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2240a2;
/* rgb */ color: rgb(34, 64, 162);
/* oklch */ color: oklch(41.4% 0.162 266.2);
Tailwind
colors: {
  custom: {
    50: '#7274be',
    500: '#2240a2',
    950: '#000000',
  },
}
SCSS
$custom: #2240a2;
$custom-light: #7274be;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a2",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 225.938,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41412,
    "c": 0.16246,
    "h": 266.2
  },
  "luminance": 0.06616
}

Semantic roles & 50–950 ramp

primary
#2240A2
secondary
#C3AB5D
accent
#C140E8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2240A2

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

Preview Lab → · Contrast checker → · Palette generator →

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