#1E175F#1E175F

#1E175F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.121 H 278.8°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#1E175F
RGBrgb(30, 23, 95)
HSLhsl(246, 61%, 23%)
HSVhsv(246, 76%, 37%)
CMYKcmyk(68.4%, 75.8%, 0%, 62.7%)
CIE-LABlab(13.91, 27.42, -41.58)
CIE-LCHlch(13.91, 49.81, 303.41°)
OKLaboklab(26.96% 0.0186 -0.12)
OKLCHoklch(26.96% 0.121 278.8)
XYZxyz(2.9067, 1.7148, 11.0021)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E175F #585F17
analogous
#17345F #1E175F #42175F
triadic
#1E175F #5F1E17 #175F1E
tetradic
#1E175F #5F1734 #585F17 #175F42
square
#1E175F #5F1734 #585F17 #175F42
split-complementary
#1E175F #5F4217 #345F17
monochromatic
#080619 #0E0B2E #1E175F #2E2390 #3D2FC2

Accessibility & contrast

On white

15.64
#1E175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1E175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E175F
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E175F#FFFFFF#000000##FFFFFF
##1E175F1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1e175f;
/* rgb */ color: rgb(30, 23, 95);
/* oklch */ color: oklch(27.0% 0.121 278.8);
Tailwind
colors: {
  custom: {
    50: '#64558d',
    500: '#1e175f',
    950: '#000000',
  },
}
SCSS
$custom: #1e175f;
$custom-light: #64558d;
$custom-dark: #000000;
JSON
{
  "hex": "#1e175f",
  "rgb": {
    "r": 30,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 245.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26964,
    "c": 0.12142,
    "h": 278.8
  },
  "luminance": 0.01715
}

Semantic roles & 50–950 ramp

primary
#1E175F
secondary
#8D963C
accent
#E444D5
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1E175F

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

Preview Lab → · Contrast checker → · Palette generator →

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