#1E1F7C#1E1F7C

#1E1F7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.152 H 273.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1E1F7C
RGBrgb(30, 31, 124)
HSLhsl(239, 61%, 30%)
HSVhsv(239, 76%, 49%)
CMYKcmyk(75.8%, 75%, 0%, 51.4%)
CIE-LABlab(18.85, 32.83, -52.35)
CIE-LCHlch(18.85, 61.79, 302.09°)
OKLaboklab(31.42% 0.0079 -0.1515)
OKLCHoklch(31.42% 0.152 273)
XYZxyz(4.6623, 2.7108, 19.3424)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F7C #7C7B1E
analogous
#1E4E7C #1E1F7C #4C1E7C
triadic
#1E1F7C #7C1E1F #1F7C1E
tetradic
#1E1F7C #7C1E4E #7C7B1E #1E7C4C
square
#1E1F7C #7C1E4E #7C7B1E #1E7C4C
split-complementary
#1E1F7C #7C4C1E #4E7C1E
monochromatic
#060619 #12134B #1E1F7C #2A2BAD #4344D1

Accessibility & contrast

On white

13.62
#1E1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1E1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1F7C
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F7C#FFFFFF#000000##FFFFFF
##1E1F7C1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e1f7c;
/* rgb */ color: rgb(30, 31, 124);
/* oklch */ color: oklch(31.4% 0.152 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a5ba3',
    500: '#1e1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f7c;
$custom-light: #6a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f7c",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 239.362,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31424,
    "c": 0.15166,
    "h": 273
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#1E1F7C
secondary
#AFAE46
accent
#E244E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1E1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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