#2240A3#2240A3

#2240A3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.164 H 266.2°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#2240A3
RGBrgb(34, 64, 163)
HSLhsl(226, 65%, 39%)
HSVhsv(226, 79%, 64%)
CMYKcmyk(79.1%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.00, 26.18, -56.56)
CIE-LCHlch(31.00, 62.32, 294.84°)
OKLaboklab(41.5% -0.0107 -0.1635)
OKLCHoklch(41.5% 0.164 266.2)
XYZxyz(9.1016, 6.6502, 35.4472)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240A3 #A38522
analogous
#2280A3 #2240A3 #4522A3
triadic
#2240A3 #A32240 #40A322
tetradic
#2240A3 #A32280 #A38522 #22A345
square
#2240A3 #A32280 #A38522 #22A345
split-complementary
#2240A3 #A34522 #80A322
monochromatic
#0D183E #172C70 #2240A3 #2F55D4 #617EDE

Accessibility & contrast

On white

9.01
#2240A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2240A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240A3
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240A3#FFFFFF#000000##FFFFFF
##2240A31.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2240a3;
/* rgb */ color: rgb(34, 64, 163);
/* oklch */ color: oklch(41.5% 0.164 266.2);
Tailwind
colors: {
  custom: {
    50: '#7374bf',
    500: '#2240a3',
    950: '#000000',
  },
}
SCSS
$custom: #2240a3;
$custom-light: #7374bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2240a3",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 226.047,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41501,
    "c": 0.16382,
    "h": 266.2
  },
  "luminance": 0.06651
}

Semantic roles & 50–950 ramp

primary
#2240A3
secondary
#C3AC5E
accent
#C13FE8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2240A3

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

Preview Lab → · Contrast checker → · Palette generator →

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