#1E338F#1E338F

#1E338F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.154 H 267.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#1E338F
RGBrgb(30, 51, 143)
HSLhsl(229, 65%, 34%)
HSVhsv(229, 79%, 56%)
CMYKcmyk(79%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.64, 26.80, -53.11)
CIE-LCHlch(25.64, 59.49, 296.78°)
OKLaboklab(36.94% -0.0058 -0.1536)
OKLCHoklch(36.94% 0.154 267.8)
XYZxyz(6.6754, 4.6261, 26.5224)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E338F #8F7A1E
analogous
#1E6C8F #1E338F #421E8F
triadic
#1E338F #8F1E33 #338F1E
tetradic
#1E338F #8F1E6C #8F7A1E #1E8F42
square
#1E338F #8F1E6C #8F7A1E #1E8F42
split-complementary
#1E338F #8F421E #6C8F1E
monochromatic
#090F2A #13215C #1E338F #2945C2 #4E68DA

Accessibility & contrast

On white

10.91
#1E338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1E338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E338F
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E338F#FFFFFF#000000##FFFFFF
##1E338F1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1e338f;
/* rgb */ color: rgb(30, 51, 143);
/* oklch */ color: oklch(36.9% 0.154 267.8);
Tailwind
colors: {
  custom: {
    50: '#6d6ab1',
    500: '#1e338f',
    950: '#000000',
  },
}
SCSS
$custom: #1e338f;
$custom-light: #6d6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e338f",
  "rgb": {
    "r": 30,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 228.85,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36938,
    "c": 0.15371,
    "h": 267.8
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#1E338F
secondary
#BCA84C
accent
#C940E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1E338F

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

Preview Lab → · Contrast checker → · Palette generator →

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