#2140A2#2140A2

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

Color values

HEX#2140A2
RGBrgb(33, 64, 162)
HSLhsl(226, 66%, 38%)
HSVhsv(226, 80%, 64%)
CMYKcmyk(79.6%, 60.5%, 0%, 36.5%)
CIE-LABlab(30.87, 25.69, -56.16)
CIE-LCHlch(30.87, 61.75, 294.58°)
OKLaboklab(41.37% -0.0116 -0.1623)
OKLCHoklch(41.37% 0.163 265.9)
XYZxyz(8.9799, 6.5977, 34.9756)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2140A2 #A28321
analogous
#2180A2 #2140A2 #4221A2
triadic
#2140A2 #A22140 #40A221
tetradic
#2140A2 #A22180 #A28321 #21A242
square
#2140A2 #A22180 #A28321 #21A242
split-complementary
#2140A2 #A24221 #80A221
monochromatic
#0C183C #172C6F #2140A2 #2C54D4 #5F7EDE

Accessibility & contrast

On white

9.05
#2140A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2140A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2140A2
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2140A2#FFFFFF#000000##FFFFFF
##2140A21.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2140a2;
/* rgb */ color: rgb(33, 64, 162);
/* oklch */ color: oklch(41.4% 0.163 265.9);
Tailwind
colors: {
  custom: {
    50: '#7274be',
    500: '#2140a2',
    950: '#000000',
  },
}
SCSS
$custom: #2140a2;
$custom-light: #7274be;
$custom-dark: #000000;
JSON
{
  "hex": "#2140a2",
  "rgb": {
    "r": 33,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 225.581,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41371,
    "c": 0.16272,
    "h": 265.9
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2140A2

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

Preview Lab → · Contrast checker → · Palette generator →

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