#1942CA#1942CA

#1942CA is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.3% C 0.214 H 265.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#1942CA
RGBrgb(25, 66, 202)
HSLhsl(226, 78%, 45%)
HSVhsv(226, 88%, 79%)
CMYKcmyk(87.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(34.73, 38.98, -73.52)
CIE-LCHlch(34.73, 83.22, 297.93°)
OKLaboklab(45.25% -0.0185 -0.2132)
OKLCHoklch(45.25% 0.214 265)
XYZxyz(13.0060, 8.3657, 56.7949)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1942CA #CAA119
analogous
#199BCA #1942CA #4919CA
triadic
#1942CA #CA1942 #42CA19
tetradic
#1942CA #CA199B #CAA119 #19CA49
square
#1942CA #CA199B #CAA119 #19CA49
split-complementary
#1942CA #CA4919 #9BCA19
monochromatic
#0C1E5D #123094 #1942CA #3A62E7 #708DED

Accessibility & contrast

On white

7.86
#1942CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1942CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1942CA
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1942CA#FFFFFF#000000##FFFFFF
##1942CA1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#006880
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1942ca;
/* rgb */ color: rgb(25, 66, 202);
/* oklch */ color: oklch(45.3% 0.214 265.0);
Tailwind
colors: {
  custom: {
    50: '#7b76db',
    500: '#1942ca',
    950: '#000000',
  },
}
SCSS
$custom: #1942ca;
$custom-light: #7b76db;
$custom-dark: #000000;
JSON
{
  "hex": "#1942ca",
  "rgb": {
    "r": 25,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 226.102,
    "s": 77.974,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45254,
    "c": 0.214,
    "h": 265
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#1942CA
secondary
#D4BB6B
accent
#C833F4
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0B0815
muted
#7C7B83

Preview Lab

Preview with #1942CA

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

Preview Lab → · Contrast checker → · Palette generator →

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