#1E277F#1E277F

#1E277F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.146 H 271.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1E277F
RGBrgb(30, 39, 127)
HSLhsl(234, 62%, 31%)
HSVhsv(234, 76%, 50%)
CMYKcmyk(76.4%, 69.3%, 0%, 50.2%)
CIE-LABlab(21.05, 28.76, -50.63)
CIE-LCHlch(21.05, 58.23, 299.60°)
OKLaboklab(33.11% 0.0027 -0.1464)
OKLCHoklch(33.11% 0.146 271.1)
XYZxyz(5.0904, 3.2588, 20.4353)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E277F #7F761E
analogous
#1E577F #1E277F #451E7F
triadic
#1E277F #7F1E27 #277F1E
tetradic
#1E277F #7F1E57 #7F761E #1E7F45
square
#1E277F #7F1E57 #7F761E #1E7F45
split-complementary
#1E277F #7F451E #577F1E
monochromatic
#07091C #12184D #1E277F #2A36B1 #4452D3

Accessibility & contrast

On white

12.71
#1E277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E277F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E277F#FFFFFF#000000##FFFFFF
##1E277F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e277f;
/* rgb */ color: rgb(30, 39, 127);
/* oklch */ color: oklch(33.1% 0.146 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a61a5',
    500: '#1e277f',
    950: '#000000',
  },
}
SCSS
$custom: #1e277f;
$custom-light: #6a61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e277f",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 234.433,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33108,
    "c": 0.14645,
    "h": 271.1
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#1E277F
secondary
#B2A847
accent
#D643E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1E277F

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

Preview Lab → · Contrast checker → · Palette generator →

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