#1940B4#1940B4

#1940B4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.189 H 264.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#1940B4
RGBrgb(25, 64, 180)
HSLhsl(225, 76%, 40%)
HSVhsv(225, 86%, 71%)
CMYKcmyk(86.1%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.19, 31.99, -64.79)
CIE-LCHlch(32.19, 72.26, 296.28°)
OKLaboklab(42.76% -0.0171 -0.1877)
OKLCHoklch(42.76% 0.189 264.8)
XYZxyz(10.4696, 7.1674, 44.0028)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1940B4 #B48D19
analogous
#198EB4 #1940B4 #3F19B4
triadic
#1940B4 #B41940 #40B419
tetradic
#1940B4 #B4198E #B48D19 #19B43F
square
#1940B4 #B4198E #B48D19 #19B43F
split-complementary
#1940B4 #B43F19 #8EB419
monochromatic
#0A1A49 #122D7E #1940B4 #2957E1 #5F81E9

Accessibility & contrast

On white

8.63
#1940B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1940B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1940B4
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1940B4#FFFFFF#000000##FFFFFF
##1940B41.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1940b4;
/* rgb */ color: rgb(25, 64, 180);
/* oklch */ color: oklch(42.8% 0.189 264.8);
Tailwind
colors: {
  custom: {
    50: '#7574cb',
    500: '#1940b4',
    950: '#000000',
  },
}
SCSS
$custom: #1940b4;
$custom-light: #7574cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1940b4",
  "rgb": {
    "r": 25,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 224.903,
    "s": 75.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42756,
    "c": 0.1885,
    "h": 264.8
  },
  "luminance": 0.07169
}

Semantic roles & 50–950 ramp

primary
#1940B4
secondary
#CDB05C
accent
#C336F2
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1940B4

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

Preview Lab → · Contrast checker → · Palette generator →

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