#2140A1#2140A1

#2140A1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.161 H 265.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2140A1
RGBrgb(33, 64, 161)
HSLhsl(225, 66%, 38%)
HSVhsv(225, 80%, 63%)
CMYKcmyk(79.5%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.79, 25.30, -55.69)
CIE-LCHlch(30.79, 61.17, 294.43°)
OKLaboklab(41.28% -0.0116 -0.1609)
OKLCHoklch(41.28% 0.161 265.9)
XYZxyz(8.8914, 6.5623, 34.5093)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140A1 #A18221
analogous
#2180A1 #2140A1 #4221A1
triadic
#2140A1 #A12140 #40A121
tetradic
#2140A1 #A12180 #A18221 #21A142
square
#2140A1 #A12180 #A18221 #21A142
split-complementary
#2140A1 #A14221 #80A121
monochromatic
#0C183B #172C6E #2140A1 #2C54D4 #5E7DDE

Accessibility & contrast

On white

9.08
#2140A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2140A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140A1
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140A1#FFFFFF#000000##FFFFFF
##2140A11.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2140a1;
/* rgb */ color: rgb(33, 64, 161);
/* oklch */ color: oklch(41.3% 0.161 265.9);
Tailwind
colors: {
  custom: {
    50: '#7274be',
    500: '#2140a1',
    950: '#000000',
  },
}
SCSS
$custom: #2140a1;
$custom-light: #7274be;
$custom-dark: #000000;
JSON
{
  "hex": "#2140a1",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 225.469,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41282,
    "c": 0.16136,
    "h": 265.9
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#2140A1
secondary
#C3AA5B
accent
#C03FE9
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2140A1

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

Preview Lab → · Contrast checker → · Palette generator →

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