#1E277B#1E277B

#1E277B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.141 H 271.2°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1E277B
RGBrgb(30, 39, 123)
HSLhsl(234, 61%, 30%)
HSVhsv(234, 76%, 48%)
CMYKcmyk(75.6%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.66, 27.24, -48.73)
CIE-LCHlch(20.66, 55.83, 299.21°)
OKLaboklab(32.7% 0.0031 -0.1409)
OKLCHoklch(32.7% 0.141 271.2)
XYZxyz(4.8349, 3.1566, 19.0895)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E277B #7B721E
analogous
#1E557B #1E277B #441E7B
triadic
#1E277B #7B1E27 #277B1E
tetradic
#1E277B #7B1E55 #7B721E #1E7B44
square
#1E277B #7B1E55 #7B721E #1E7B44
split-complementary
#1E277B #7B441E #557B1E
monochromatic
#060819 #12174A #1E277B #2A37AC #4250D1

Accessibility & contrast

On white

12.87
#1E277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1E277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E277B
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E277B#FFFFFF#000000##FFFFFF
##1E277B1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e277b;
/* rgb */ color: rgb(30, 39, 123);
/* oklch */ color: oklch(32.7% 0.141 271.2);
Tailwind
colors: {
  custom: {
    50: '#6961a2',
    500: '#1e277b',
    950: '#000000',
  },
}
SCSS
$custom: #1e277b;
$custom-light: #6961a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e277b",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 234.194,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.14091,
    "h": 271.2
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#1E277B
secondary
#AEA446
accent
#D444E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1E277B

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

Preview Lab → · Contrast checker → · Palette generator →

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