#2140A7#2140A7

#2140A7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.169 H 266.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2140A7
RGBrgb(33, 64, 167)
HSLhsl(226, 67%, 39%)
HSVhsv(226, 80%, 65%)
CMYKcmyk(80.2%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.30, 27.62, -58.47)
CIE-LCHlch(31.30, 64.67, 295.29°)
OKLaboklab(41.82% -0.0115 -0.1691)
OKLCHoklch(41.82% 0.169 266.1)
XYZxyz(9.4332, 6.7790, 37.3630)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140A7 #A78821
analogous
#2183A7 #2140A7 #4521A7
triadic
#2140A7 #A72140 #40A721
tetradic
#2140A7 #A72183 #A78821 #21A745
square
#2140A7 #A72183 #A78821 #21A745
split-complementary
#2140A7 #A74521 #83A721
monochromatic
#0D1941 #172C74 #2140A7 #2F56D6 #627FE0

Accessibility & contrast

On white

8.91
#2140A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2140A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140A7
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140A7#FFFFFF#000000##FFFFFF
##2140A71.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2140a7;
/* rgb */ color: rgb(33, 64, 167);
/* oklch */ color: oklch(41.8% 0.169 266.1);
Tailwind
colors: {
  custom: {
    50: '#7374c2',
    500: '#2140a7',
    950: '#000000',
  },
}
SCSS
$custom: #2140a7;
$custom-light: #7374c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2140a7",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 226.119,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4182,
    "c": 0.16949,
    "h": 266.1
  },
  "luminance": 0.0678
}

Semantic roles & 50–950 ramp

primary
#2140A7
secondary
#C5AD5F
accent
#C23EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2140A7

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

Preview Lab → · Contrast checker → · Palette generator →

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