#1E2870#1E2870

#1E2870 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.124 H 271.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#1E2870
RGBrgb(30, 40, 112)
HSLhsl(233, 58%, 28%)
HSVhsv(233, 73%, 44%)
CMYKcmyk(73.2%, 64.3%, 0%, 56.1%)
CIE-LABlab(19.90, 22.30, -42.93)
CIE-LCHlch(19.90, 48.38, 297.45°)
OKLaboklab(31.82% 0.0029 -0.1239)
OKLCHoklch(31.82% 0.124 271.4)
XYZxyz(4.2179, 2.9630, 15.6757)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2870 #70661E
analogous
#1E5170 #1E2870 #3D1E70
triadic
#1E2870 #701E28 #28701E
tetradic
#1E2870 #701E51 #70661E #1E703D
square
#1E2870 #701E51 #70661E #1E703D
split-complementary
#1E2870 #703D1E #51701E
monochromatic
#060918 #111740 #1E2870 #2B39A0 #3D4FCB

Accessibility & contrast

On white

13.19
#1E2870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1E2870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2870
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2870#FFFFFF#000000##FFFFFF
##1E28701.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1e2870;
/* rgb */ color: rgb(30, 40, 112);
/* oklch */ color: oklch(31.8% 0.124 271.4);
Tailwind
colors: {
  custom: {
    50: '#66619a',
    500: '#1e2870',
    950: '#000000',
  },
}
SCSS
$custom: #1e2870;
$custom-light: #66619a;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2870",
  "rgb": {
    "r": 30,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 232.683,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31824,
    "c": 0.12392,
    "h": 271.4
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#1E2870
secondary
#A49946
accent
#CE47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1E2870

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

Preview Lab → · Contrast checker → · Palette generator →

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