#2240BD#2240BD

#2240BD is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.198 H 266.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2240BD
RGBrgb(34, 64, 189)
HSLhsl(228, 70%, 44%)
HSVhsv(228, 82%, 74%)
CMYKcmyk(82%, 66.1%, 0%, 25.9%)
CIE-LABlab(33.31, 36.02, -68.25)
CIE-LCHlch(33.31, 77.18, 297.82°)
OKLaboklab(43.92% -0.0112 -0.1977)
OKLCHoklch(43.92% 0.198 266.8)
XYZxyz(11.6752, 7.6796, 49.0012)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240BD #BD9F22
analogous
#228DBD #2240BD #5122BD
triadic
#2240BD #BD2240 #40BD22
tetradic
#2240BD #BD228D #BD9F22 #22BD51
square
#2240BD #BD228D #BD9F22 #22BD51
split-complementary
#2240BD #BD5122 #8DBD22
monochromatic
#0F1D55 #192E89 #2240BD #405EDD #738AE6

Accessibility & contrast

On white

8.28
#2240BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2240BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240BD
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240BD#FFFFFF#000000##FFFFFF
##2240BD1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0047BB
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2240bd;
/* rgb */ color: rgb(34, 64, 189);
/* oklch */ color: oklch(43.9% 0.198 266.8);
Tailwind
colors: {
  custom: {
    50: '#7974d2',
    500: '#2240bd',
    950: '#000000',
  },
}
SCSS
$custom: #2240bd;
$custom-light: #7974d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2240bd",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 228.387,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43917,
    "c": 0.19802,
    "h": 266.8
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#2240BD
secondary
#CDBB6E
accent
#CA3BEC
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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