#1E1270#1E1270

#1E1270 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.149 H 276.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#1E1270
RGBrgb(30, 18, 112)
HSLhsl(248, 72%, 25%)
HSVhsv(248, 84%, 44%)
CMYKcmyk(73.2%, 83.9%, 0%, 56.1%)
CIE-LABlab(14.83, 36.17, -51.26)
CIE-LCHlch(14.83, 62.73, 305.21°)
OKLaboklab(28.19% 0.0173 -0.1481)
OKLCHoklch(28.19% 0.149 276.7)
XYZxyz(3.6754, 1.8781, 15.4949)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1270 #647012
analogous
#123570 #1E1270 #4D1270
triadic
#1E1270 #701E12 #12701E
tetradic
#1E1270 #701235 #647012 #12704D
square
#1E1270 #701235 #647012 #12704D
split-complementary
#1E1270 #704D12 #357012
monochromatic
#07041A #100A3B #1E1270 #2C1AA5 #3A23D9

Accessibility & contrast

On white

15.27
#1E1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1E1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1270
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1270#FFFFFF#000000##FFFFFF
##1E12701.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00216E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1e1270;
/* rgb */ color: rgb(30, 18, 112);
/* oklch */ color: oklch(28.2% 0.149 276.7);
Tailwind
colors: {
  custom: {
    50: '#68539a',
    500: '#1e1270',
    950: '#000000',
  },
}
SCSS
$custom: #1e1270;
$custom-light: #68539a;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1270",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 247.66,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2819,
    "c": 0.14914,
    "h": 276.7
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#1E1270
secondary
#99A737
accent
#EF39D8
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1E1270

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

Preview Lab → · Contrast checker → · Palette generator →

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