#1940CA#1940CA

#1940CA is a dark, highly saturated blue. Relative luminance 0.081; OKLCH L 44.9% C 0.216 H 265.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#1940CA
RGBrgb(25, 64, 202)
HSLhsl(227, 78%, 45%)
HSVhsv(227, 88%, 79%)
CMYKcmyk(87.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(34.26, 40.24, -74.30)
CIE-LCHlch(34.26, 84.49, 298.44°)
OKLaboklab(44.91% -0.0178 -0.2155)
OKLCHoklch(44.91% 0.216 265.3)
XYZxyz(12.8912, 8.1361, 56.7566)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1940CA #CAA319
analogous
#1998CA #1940CA #4B19CA
triadic
#1940CA #CA1940 #40CA19
tetradic
#1940CA #CA1998 #CAA319 #19CA4B
square
#1940CA #CA1998 #CAA319 #19CA4B
split-complementary
#1940CA #CA4B19 #98CA19
monochromatic
#0C1D5D #122F94 #1940CA #3A60E7 #708CED

Accessibility & contrast

On white

7.99
#1940CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1940CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1940CA
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1940CA#FFFFFF#000000##FFFFFF
##1940CA1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0048C7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1940ca;
/* rgb */ color: rgb(25, 64, 202);
/* oklch */ color: oklch(44.9% 0.216 265.3);
Tailwind
colors: {
  custom: {
    50: '#7b75db',
    500: '#1940ca',
    950: '#000000',
  },
}
SCSS
$custom: #1940ca;
$custom-light: #7b75db;
$custom-dark: #000000;
JSON
{
  "hex": "#1940ca",
  "rgb": {
    "r": 25,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 226.78,
    "s": 77.974,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44912,
    "c": 0.2162,
    "h": 265.3
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#1940CA
secondary
#D4BD6B
accent
#CA33F4
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0B0815
muted
#7C7B83

Preview Lab

Preview with #1940CA

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

Preview Lab → · Contrast checker → · Palette generator →

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