#1938B4#1938B4

#1938B4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.3% C 0.198 H 266.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#1938B4
RGBrgb(25, 56, 180)
HSLhsl(228, 76%, 40%)
HSVhsv(228, 86%, 71%)
CMYKcmyk(86.1%, 68.9%, 0%, 29.4%)
CIE-LABlab(30.23, 37.18, -68.01)
CIE-LCHlch(30.23, 77.51, 298.67°)
OKLaboklab(41.32% -0.0138 -0.1972)
OKLCHoklch(41.32% 0.198 266)
XYZxyz(10.0504, 6.3290, 43.8631)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1938B4 #B49519
analogous
#1985B4 #1938B4 #4719B4
triadic
#1938B4 #B41938 #38B419
tetradic
#1938B4 #B41985 #B49519 #19B447
square
#1938B4 #B41985 #B49519 #19B447
split-complementary
#1938B4 #B44719 #85B419
monochromatic
#0A1749 #12277E #1938B4 #294EE1 #5F7AE9

Accessibility & contrast

On white

9.27
#1938B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1938B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1938B4
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1938B4#FFFFFF#000000##FFFFFF
##1938B41.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1938b4;
/* rgb */ color: rgb(25, 56, 180);
/* oklch */ color: oklch(41.3% 0.198 266.0);
Tailwind
colors: {
  custom: {
    50: '#766ecc',
    500: '#1938b4',
    950: '#000000',
  },
}
SCSS
$custom: #1938b4;
$custom-light: #766ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#1938b4",
  "rgb": {
    "r": 25,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 228,
    "s": 75.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41321,
    "c": 0.19764,
    "h": 266
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#1938B4
secondary
#CDB65C
accent
#CC36F2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1938B4

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

Preview Lab → · Contrast checker → · Palette generator →

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