#2240BC#2240BC

#2240BC is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.8% C 0.197 H 266.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2240BC
RGBrgb(34, 64, 188)
HSLhsl(228, 69%, 44%)
HSVhsv(228, 82%, 74%)
CMYKcmyk(81.9%, 66%, 0%, 26.3%)
CIE-LABlab(33.21, 35.65, -67.82)
CIE-LCHlch(33.21, 76.62, 297.73°)
OKLaboklab(43.82% -0.0111 -0.1964)
OKLCHoklch(43.82% 0.197 266.8)
XYZxyz(11.5670, 7.6363, 48.4315)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240BC #BC9E22
analogous
#228DBC #2240BC #5122BC
triadic
#2240BC #BC2240 #40BC22
tetradic
#2240BC #BC228D #BC9E22 #22BC51
square
#2240BC #BC228D #BC9E22 #22BC51
split-complementary
#2240BC #BC5122 #8DBC22
monochromatic
#0F1D54 #192E88 #2240BC #3F5EDC #7389E6

Accessibility & contrast

On white

8.31
#2240BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2240BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240BC
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240BC#FFFFFF#000000##FFFFFF
##2240BC1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0047BA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2240bc;
/* rgb */ color: rgb(34, 64, 188);
/* oklch */ color: oklch(43.8% 0.197 266.8);
Tailwind
colors: {
  custom: {
    50: '#7974d1',
    500: '#2240bc',
    950: '#000000',
  },
}
SCSS
$custom: #2240bc;
$custom-light: #7974d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2240bc",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 228.312,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.19675,
    "h": 266.8
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#2240BC
secondary
#CDBA6D
accent
#CA3CEC
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2240BC

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

Preview Lab → · Contrast checker → · Palette generator →

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