#2140A4#2140A4

#2140A4 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.165 H 266.0°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2140A4
RGBrgb(33, 64, 164)
HSLhsl(226, 66%, 39%)
HSVhsv(226, 80%, 64%)
CMYKcmyk(79.9%, 61%, 0%, 35.7%)
CIE-LABlab(31.04, 26.46, -57.09)
CIE-LCHlch(31.04, 62.92, 294.87°)
OKLaboklab(41.55% -0.0115 -0.165)
OKLCHoklch(41.55% 0.165 266)
XYZxyz(9.1591, 6.6694, 35.9194)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140A4 #A48521
analogous
#2181A4 #2140A4 #4421A4
triadic
#2140A4 #A42140 #40A421
tetradic
#2140A4 #A42181 #A48521 #21A444
square
#2140A4 #A42181 #A48521 #21A444
split-complementary
#2140A4 #A44421 #81A421
monochromatic
#0C183E #172C71 #2140A4 #2D55D5 #607EDF

Accessibility & contrast

On white

9.00
#2140A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2140A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140A4
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140A4#FFFFFF#000000##FFFFFF
##2140A41.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2140a4;
/* rgb */ color: rgb(33, 64, 164);
/* oklch */ color: oklch(41.5% 0.165 266.0);
Tailwind
colors: {
  custom: {
    50: '#7374c0',
    500: '#2140a4',
    950: '#000000',
  },
}
SCSS
$custom: #2140a4;
$custom-light: #7374c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2140a4",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 225.802,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4155,
    "c": 0.16544,
    "h": 266
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#2140A4
secondary
#C4AC5D
accent
#C13EE9
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2140A4

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

Preview Lab → · Contrast checker → · Palette generator →

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