#1940A1#1940A1

#1940A1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.163 H 263.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#1940A1
RGBrgb(25, 64, 161)
HSLhsl(223, 73%, 36%)
HSVhsv(223, 84%, 63%)
CMYKcmyk(84.5%, 60.2%, 0%, 36.9%)
CIE-LABlab(30.51, 24.56, -56.16)
CIE-LCHlch(30.51, 61.29, 293.62°)
OKLaboklab(41% -0.0174 -0.1624)
OKLCHoklch(41% 0.163 263.9)
XYZxyz(8.6650, 6.4456, 34.4987)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1940A1 #A17A19
analogous
#1984A1 #1940A1 #3619A1
triadic
#1940A1 #A11940 #40A119
tetradic
#1940A1 #A11984 #A17A19 #19A136
square
#1940A1 #A11984 #A17A19 #19A136
split-complementary
#1940A1 #A13619 #84A119
monochromatic
#091637 #112B6C #1940A1 #2155D6 #507BE4

Accessibility & contrast

On white

9.17
#1940A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1940A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1940A1
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1940A1#FFFFFF#000000##FFFFFF
##1940A11.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1940a1;
/* rgb */ color: rgb(25, 64, 161);
/* oklch */ color: oklch(41.0% 0.163 263.9);
Tailwind
colors: {
  custom: {
    50: '#7074be',
    500: '#1940a1',
    950: '#000000',
  },
}
SCSS
$custom: #1940a1;
$custom-light: #7074be;
$custom-dark: #000000;
JSON
{
  "hex": "#1940a1",
  "rgb": {
    "r": 25,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 222.794,
    "s": 73.118,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40995,
    "c": 0.16337,
    "h": 263.9
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#1940A1
secondary
#C6A44F
accent
#BB38F0
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1940A1

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

Preview Lab → · Contrast checker → · Palette generator →

#1940A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva