#2240B3#2240B3

#2240B3 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.185 H 266.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2240B3
RGBrgb(34, 64, 179)
HSLhsl(228, 68%, 42%)
HSVhsv(228, 81%, 70%)
CMYKcmyk(81%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.39, 32.29, -63.84)
CIE-LCHlch(32.39, 71.54, 296.83°)
OKLaboklab(42.97% -0.0108 -0.1848)
OKLCHoklch(42.97% 0.185 266.7)
XYZxyz(10.6269, 7.2603, 43.4804)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2240B3 #B39522
analogous
#2289B3 #2240B3 #4D22B3
triadic
#2240B3 #B32240 #40B322
tetradic
#2240B3 #B32289 #B39522 #22B34D
square
#2240B3 #B32289 #B39522 #22B34D
split-complementary
#2240B3 #B34D22 #89B322
monochromatic
#0E1B4C #182E80 #2240B3 #395AD9 #6C85E3

Accessibility & contrast

On white

8.56
#2240B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2240B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2240B3
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2240B3#FFFFFF#000000##FFFFFF
##2240B31.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0045B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2240b3;
/* rgb */ color: rgb(34, 64, 179);
/* oklch */ color: oklch(43.0% 0.185 266.7);
Tailwind
colors: {
  custom: {
    50: '#7774cb',
    500: '#2240b3',
    950: '#000000',
  },
}
SCSS
$custom: #2240b3;
$custom-light: #7774cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2240b3",
  "rgb": {
    "r": 34,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 227.586,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42966,
    "c": 0.18514,
    "h": 266.7
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#2240B3
secondary
#C9B568
accent
#C73DEB
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2240B3

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

Preview Lab → · Contrast checker → · Palette generator →

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