#1E1F7B#1E1F7B

#1E1F7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.150 H 273.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#1E1F7B
RGBrgb(30, 31, 123)
HSLhsl(239, 61%, 30%)
HSVhsv(239, 76%, 48%)
CMYKcmyk(75.6%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.74, 32.47, -51.89)
CIE-LCHlch(18.74, 61.21, 302.04°)
OKLaboklab(31.32% 0.008 -0.1501)
OKLCHoklch(31.32% 0.15 273.1)
XYZxyz(4.5994, 2.6856, 19.0110)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F7B #7B7A1E
analogous
#1E4D7B #1E1F7B #4C1E7B
triadic
#1E1F7B #7B1E1F #1F7B1E
tetradic
#1E1F7B #7B1E4D #7B7A1E #1E7B4C
square
#1E1F7B #7B1E4D #7B7A1E #1E7B4C
split-complementary
#1E1F7B #7B4C1E #4D7B1E
monochromatic
#060619 #12134A #1E1F7B #2A2BAC #4244D1

Accessibility & contrast

On white

13.66
#1E1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E1F7B
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F7B#FFFFFF#000000##FFFFFF
##1E1F7B1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e1f7b;
/* rgb */ color: rgb(30, 31, 123);
/* oklch */ color: oklch(31.3% 0.150 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a5ba2',
    500: '#1e1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f7b;
$custom-light: #6a5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f7b",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 239.355,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.31315,
    "c": 0.15033,
    "h": 273.1
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#1E1F7B
secondary
#AEAD46
accent
#E244E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1E1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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