#2140B2#2140B2

#2140B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.184 H 266.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#2140B2
RGBrgb(33, 64, 178)
HSLhsl(227, 69%, 41%)
HSVhsv(227, 81%, 70%)
CMYKcmyk(81.5%, 64%, 0%, 30.2%)
CIE-LABlab(32.27, 31.83, -63.46)
CIE-LCHlch(32.27, 70.99, 296.63°)
OKLaboklab(42.83% -0.0116 -0.1837)
OKLCHoklch(42.83% 0.184 266.4)
XYZxyz(10.4937, 7.2032, 42.9481)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140B2 #B29321
analogous
#2189B2 #2140B2 #4A21B2
triadic
#2140B2 #B22140 #40B221
tetradic
#2140B2 #B22189 #B29321 #21B24A
square
#2140B2 #B22189 #B29321 #21B24A
split-complementary
#2140B2 #B24A21 #89B221
monochromatic
#0E1B4B #172D7E #2140B2 #3659DA #6A84E3

Accessibility & contrast

On white

8.60
#2140B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2140B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140B2
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140B2#FFFFFF#000000##FFFFFF
##2140B21.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2140b2;
/* rgb */ color: rgb(33, 64, 178);
/* oklch */ color: oklch(42.8% 0.184 266.4);
Tailwind
colors: {
  custom: {
    50: '#7674ca',
    500: '#2140b2',
    950: '#000000',
  },
}
SCSS
$custom: #2140b2;
$custom-light: #7674ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2140b2",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 227.172,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42834,
    "c": 0.18407,
    "h": 266.4
  },
  "luminance": 0.07204
}

Semantic roles & 50–950 ramp

primary
#2140B2
secondary
#C9B466
accent
#C63CEC
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2140B2

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

Preview Lab → · Contrast checker → · Palette generator →

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