#1E277C#1E277C

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

Color values

HEX#1E277C
RGBrgb(30, 39, 124)
HSLhsl(234, 61%, 30%)
HSVhsv(234, 76%, 49%)
CMYKcmyk(75.8%, 68.5%, 0%, 51.4%)
CIE-LABlab(20.76, 27.62, -49.21)
CIE-LCHlch(20.76, 56.43, 299.31°)
OKLaboklab(32.8% 0.003 -0.1423)
OKLCHoklch(32.8% 0.142 271.2)
XYZxyz(4.8978, 3.1818, 19.4209)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E277C #7C731E
analogous
#1E567C #1E277C #441E7C
triadic
#1E277C #7C1E27 #277C1E
tetradic
#1E277C #7C1E56 #7C731E #1E7C44
square
#1E277C #7C1E56 #7C731E #1E7C44
split-complementary
#1E277C #7C441E #567C1E
monochromatic
#060819 #12184B #1E277C #2A36AD #4351D1

Accessibility & contrast

On white

12.83
#1E277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1E277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E277C
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E277C#FFFFFF#000000##FFFFFF
##1E277C1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e277c;
/* rgb */ color: rgb(30, 39, 124);
/* oklch */ color: oklch(32.8% 0.142 271.2);
Tailwind
colors: {
  custom: {
    50: '#6961a3',
    500: '#1e277c',
    950: '#000000',
  },
}
SCSS
$custom: #1e277c;
$custom-light: #6961a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1e277c",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 234.255,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32804,
    "c": 0.1423,
    "h": 271.2
  },
  "luminance": 0.03182
}

Semantic roles & 50–950 ramp

primary
#1E277C
secondary
#AFA546
accent
#D544E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1E277C

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

Preview Lab → · Contrast checker → · Palette generator →

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