#1940A7#1940A7

#1940A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.171 H 264.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#1940A7
RGBrgb(25, 64, 167)
HSLhsl(224, 74%, 38%)
HSVhsv(224, 85%, 65%)
CMYKcmyk(85%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.03, 26.93, -58.93)
CIE-LCHlch(31.03, 64.79, 294.56°)
OKLaboklab(41.54% -0.0172 -0.1706)
OKLCHoklch(41.54% 0.171 264.2)
XYZxyz(9.2069, 6.6623, 37.3524)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1940A7 #A78019
analogous
#1987A7 #1940A7 #3919A7
triadic
#1940A7 #A71940 #40A719
tetradic
#1940A7 #A71987 #A78019 #19A739
square
#1940A7 #A71987 #A78019 #19A739
split-complementary
#1940A7 #A73919 #87A719
monochromatic
#09173D #112C72 #1940A7 #2154DC #557DE6

Accessibility & contrast

On white

9.00
#1940A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1940A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1940A7
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1940A7#FFFFFF#000000##FFFFFF
##1940A71.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1940a7;
/* rgb */ color: rgb(25, 64, 167);
/* oklch */ color: oklch(41.5% 0.171 264.2);
Tailwind
colors: {
  custom: {
    50: '#7174c2',
    500: '#1940a7',
    950: '#000000',
  },
}
SCSS
$custom: #1940a7;
$custom-light: #7174c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1940a7",
  "rgb": {
    "r": 25,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 223.521,
    "s": 73.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4154,
    "c": 0.17144,
    "h": 264.2
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#1940A7
secondary
#C8A853
accent
#BE37F1
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1940A7

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

Preview Lab → · Contrast checker → · Palette generator →

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