#2140AE#2140AE

#2140AE is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.179 H 266.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2140AE
RGBrgb(33, 64, 174)
HSLhsl(227, 68%, 41%)
HSVhsv(227, 81%, 68%)
CMYKcmyk(81%, 63.2%, 0%, 31.8%)
CIE-LABlab(31.91, 30.31, -61.66)
CIE-LCHlch(31.91, 68.71, 296.17°)
OKLaboklab(42.46% -0.0115 -0.1784)
OKLCHoklch(42.46% 0.179 266.3)
XYZxyz(10.0979, 7.0449, 40.8638)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140AE #AE8F21
analogous
#2186AE #2140AE #4921AE
triadic
#2140AE #AE2140 #40AE21
tetradic
#2140AE #AE2186 #AE8F21 #21AE49
square
#2140AE #AE2186 #AE8F21 #21AE49
split-complementary
#2140AE #AE4921 #86AE21
monochromatic
#0D1A47 #172D7B #2140AE #3458D8 #6782E2

Accessibility & contrast

On white

8.72
#2140AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2140AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140AE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140AE#FFFFFF#000000##FFFFFF
##2140AE1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2140ae;
/* rgb */ color: rgb(33, 64, 174);
/* oklch */ color: oklch(42.5% 0.179 266.3);
Tailwind
colors: {
  custom: {
    50: '#7574c7',
    500: '#2140ae',
    950: '#000000',
  },
}
SCSS
$custom: #2140ae;
$custom-light: #7574c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2140ae",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 226.809,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42461,
    "c": 0.17882,
    "h": 266.3
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#2140AE
secondary
#C8B263
accent
#C53DEB
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2140AE

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

Preview Lab → · Contrast checker → · Palette generator →

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