#1E277E#1E277E

#1E277E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.145 H 271.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#1E277E
RGBrgb(30, 39, 126)
HSLhsl(234, 62%, 31%)
HSVhsv(234, 76%, 49%)
CMYKcmyk(76.2%, 69%, 0%, 50.6%)
CIE-LABlab(20.95, 28.38, -50.15)
CIE-LCHlch(20.95, 57.63, 299.51°)
OKLaboklab(33.01% 0.0028 -0.1451)
OKLCHoklch(33.01% 0.145 271.1)
XYZxyz(5.0256, 3.2329, 20.0938)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E277E #7E751E
analogous
#1E577E #1E277E #451E7E
triadic
#1E277E #7E1E27 #277E1E
tetradic
#1E277E #7E1E57 #7E751E #1E7E45
square
#1E277E #7E1E57 #7E751E #1E7E45
split-complementary
#1E277E #7E451E #577E1E
monochromatic
#06081B #12184D #1E277E #2A36AF #4451D2

Accessibility & contrast

On white

12.75
#1E277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1E277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E277E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E277E#FFFFFF#000000##FFFFFF
##1E277E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e277e;
/* rgb */ color: rgb(30, 39, 126);
/* oklch */ color: oklch(33.0% 0.145 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a61a4',
    500: '#1e277e',
    950: '#000000',
  },
}
SCSS
$custom: #1e277e;
$custom-light: #6a61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e277e",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 234.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33006,
    "c": 0.14508,
    "h": 271.1
  },
  "luminance": 0.03233
}

Semantic roles & 50–950 ramp

primary
#1E277E
secondary
#B1A747
accent
#D543E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1E277E

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

Preview Lab → · Contrast checker → · Palette generator →

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