#2240D3#2240D3

#2240D3 is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.1% C 0.225 H 266.8°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2240D3
RGBrgb(34, 64, 211)
HSLhsl(230, 72%, 48%)
HSVhsv(230, 84%, 83%)
CMYKcmyk(83.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(35.42, 43.98, -77.61)
CIE-LCHlch(35.42, 89.20, 299.54°)
OKLaboklab(46.09% -0.0125 -0.225)
OKLCHoklch(46.09% 0.225 266.8)
XYZxyz(14.2469, 8.7083, 62.5454)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240D3 #D3B522
analogous
#2298D3 #2240D3 #5D22D3
triadic
#2240D3 #D32240 #40D322
tetradic
#2240D3 #D32298 #D3B522 #22D35D
square
#2240D3 #D32298 #D3B522 #22D35D
split-complementary
#2240D3 #D35D22 #98D322
monochromatic
#11206A #1A309E #2240D3 #4F68E3 #8496EB

Accessibility & contrast

On white

7.66
#2240D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2240D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240D3
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240D3#FFFFFF#000000##FFFFFF
##2240D31.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD7
Deuteranopia (green-blind)
#004BD0
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2240d3;
/* rgb */ color: rgb(34, 64, 211);
/* oklch */ color: oklch(46.1% 0.225 266.8);
Tailwind
colors: {
  custom: {
    50: '#7f75e2',
    500: '#2240d3',
    950: '#000000',
  },
}
SCSS
$custom: #2240d3;
$custom-light: #7f75e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2240d3",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 229.831,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46089,
    "c": 0.22533,
    "h": 266.8
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#2240D3
secondary
#D4C57D
accent
#D039EF
background
#F8F7FE
surface
#F0EDFC
border
#CBC8D5
text
#0C0816
muted
#7D7B84

Preview Lab

Preview with #2240D3

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

Preview Lab → · Contrast checker → · Palette generator →

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