#1940A5#1940A5

#1940A5 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.169 H 264.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#1940A5
RGBrgb(25, 64, 165)
HSLhsl(223, 74%, 37%)
HSVhsv(223, 85%, 65%)
CMYKcmyk(84.8%, 61.2%, 0%, 35.3%)
CIE-LABlab(30.85, 26.14, -58.01)
CIE-LCHlch(30.85, 63.63, 294.26°)
OKLaboklab(41.36% -0.0172 -0.1679)
OKLCHoklch(41.36% 0.169 264.1)
XYZxyz(9.0234, 6.5890, 36.3862)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1940A5 #A57E19
analogous
#1986A5 #1940A5 #3819A5
triadic
#1940A5 #A51940 #40A519
tetradic
#1940A5 #A51986 #A57E19 #19A538
square
#1940A5 #A51986 #A57E19 #19A538
split-complementary
#1940A5 #A53819 #86A519
monochromatic
#09173B #112B70 #1940A5 #2155DA #537CE5

Accessibility & contrast

On white

9.06
#1940A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1940A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1940A5
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1940A5#FFFFFF#000000##FFFFFF
##1940A51.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1940a5;
/* rgb */ color: rgb(25, 64, 165);
/* oklch */ color: oklch(41.4% 0.169 264.1);
Tailwind
colors: {
  custom: {
    50: '#7174c1',
    500: '#1940a5',
    950: '#000000',
  },
}
SCSS
$custom: #1940a5;
$custom-light: #7174c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1940a5",
  "rgb": {
    "r": 25,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 223.286,
    "s": 73.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41357,
    "c": 0.16875,
    "h": 264.1
  },
  "luminance": 0.0659
}

Semantic roles & 50–950 ramp

primary
#1940A5
secondary
#C8A752
accent
#BD37F0
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1940A5

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

Preview Lab → · Contrast checker → · Palette generator →

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