#1E3A9C#1E3A9C

#1E3A9C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.163 H 266.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#1E3A9C
RGBrgb(30, 58, 156)
HSLhsl(227, 68%, 36%)
HSVhsv(227, 81%, 61%)
CMYKcmyk(80.8%, 62.8%, 0%, 38.8%)
CIE-LABlab(28.65, 27.11, -56.16)
CIE-LCHlch(28.65, 62.37, 295.77°)
OKLaboklab(39.52% -0.0103 -0.1625)
OKLCHoklch(39.52% 0.163 266.4)
XYZxyz(8.0471, 5.7015, 32.1224)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E3A9C #9C801E
analogous
#1E799C #1E3A9C #411E9C
triadic
#1E3A9C #9C1E3A #3A9C1E
tetradic
#1E3A9C #9C1E79 #9C801E #1E9C41
square
#1E3A9C #9C1E79 #9C801E #1E9C41
split-complementary
#1E3A9C #9C411E #799C1E
monochromatic
#0A1435 #142769 #1E3A9C #284DCF #5674DE

Accessibility & contrast

On white

9.81
#1E3A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1E3A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E3A9C
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E3A9C#FFFFFF#000000##FFFFFF
##1E3A9C1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1e3a9c;
/* rgb */ color: rgb(30, 58, 156);
/* oklch */ color: oklch(39.5% 0.163 266.4);
Tailwind
colors: {
  custom: {
    50: '#706fba',
    500: '#1e3a9c',
    950: '#000000',
  },
}
SCSS
$custom: #1e3a9c;
$custom-light: #706fba;
$custom-dark: #000000;
JSON
{
  "hex": "#1e3a9c",
  "rgb": {
    "r": 30,
    "g": 58,
    "b": 156
  },
  "hsl": {
    "h": 226.667,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39521,
    "c": 0.16279,
    "h": 266.4
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#1E3A9C
secondary
#C2A954
accent
#C43DEB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1E3A9C

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

Preview Lab → · Contrast checker → · Palette generator →

#1E3A9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva