#2240B1#2240B1

#2240B1 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.183 H 266.6°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#2240B1
RGBrgb(34, 64, 177)
HSLhsl(227, 68%, 41%)
HSVhsv(227, 81%, 69%)
CMYKcmyk(80.8%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.21, 31.53, -62.95)
CIE-LCHlch(32.21, 70.41, 296.61°)
OKLaboklab(42.78% -0.0108 -0.1822)
OKLCHoklch(42.78% 0.183 266.6)
XYZxyz(10.4261, 7.1800, 42.4228)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240B1 #B19322
analogous
#2288B1 #2240B1 #4C22B1
triadic
#2240B1 #B12240 #40B122
tetradic
#2240B1 #B12288 #B19322 #22B14C
square
#2240B1 #B12288 #B19322 #22B14C
split-complementary
#2240B1 #B14C22 #88B122
monochromatic
#0E1B4A #182D7E #2240B1 #3859D9 #6B84E3

Accessibility & contrast

On white

8.62
#2240B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2240B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240B1
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240B1#FFFFFF#000000##FFFFFF
##2240B11.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2240b1;
/* rgb */ color: rgb(34, 64, 177);
/* oklch */ color: oklch(42.8% 0.183 266.6);
Tailwind
colors: {
  custom: {
    50: '#7674c9',
    500: '#2240b1',
    950: '#000000',
  },
}
SCSS
$custom: #2240b1;
$custom-light: #7674c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2240b1",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 227.413,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.18252,
    "h": 266.6
  },
  "luminance": 0.07181
}

Semantic roles & 50–950 ramp

primary
#2240B1
secondary
#C9B466
accent
#C63DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2240B1

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

Preview Lab → · Contrast checker → · Palette generator →

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