#2140B4#2140B4

#2140B4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.187 H 266.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#2140B4
RGBrgb(33, 64, 180)
HSLhsl(227, 69%, 42%)
HSVhsv(227, 82%, 71%)
CMYKcmyk(81.7%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.45, 32.58, -64.35)
CIE-LCHlch(32.45, 72.13, 296.85°)
OKLaboklab(43.02% -0.0116 -0.1863)
OKLCHoklch(43.02% 0.187 266.4)
XYZxyz(10.6959, 7.2841, 44.0134)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140B4 #B49521
analogous
#218AB4 #2140B4 #4C21B4
triadic
#2140B4 #B42140 #40B421
tetradic
#2140B4 #B4218A #B49521 #21B44C
square
#2140B4 #B4218A #B49521 #21B44C
split-complementary
#2140B4 #B44C21 #8AB421
monochromatic
#0E1B4D #182E80 #2140B4 #385ADA #6B85E4

Accessibility & contrast

On white

8.55
#2140B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2140B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140B4
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140B4#FFFFFF#000000##FFFFFF
##2140B41.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2140b4;
/* rgb */ color: rgb(33, 64, 180);
/* oklch */ color: oklch(43.0% 0.187 266.4);
Tailwind
colors: {
  custom: {
    50: '#7774cb',
    500: '#2140b4',
    950: '#000000',
  },
}
SCSS
$custom: #2140b4;
$custom-light: #7774cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2140b4",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 227.347,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43022,
    "c": 0.18668,
    "h": 266.4
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#2140B4
secondary
#CAB567
accent
#C73CEC
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2140B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2140B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva