#1E338E#1E338E

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

Color values

HEX#1E338E
RGBrgb(30, 51, 142)
HSLhsl(229, 65%, 34%)
HSVhsv(229, 79%, 56%)
CMYKcmyk(78.9%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.55, 26.41, -52.64)
CIE-LCHlch(25.55, 58.89, 296.65°)
OKLaboklab(36.84% -0.0058 -0.1522)
OKLCHoklch(36.84% 0.152 267.8)
XYZxyz(6.6000, 4.5959, 26.1252)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E338E #8E791E
analogous
#1E6B8E #1E338E #411E8E
triadic
#1E338E #8E1E33 #338E1E
tetradic
#1E338E #8E1E6B #8E791E #1E8E41
square
#1E338E #8E1E6B #8E791E #1E8E41
split-complementary
#1E338E #8E411E #6B8E1E
monochromatic
#090F29 #13215B #1E338E #2945C1 #4D67D9

Accessibility & contrast

On white

10.94
#1E338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1E338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E338E
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E338E#FFFFFF#000000##FFFFFF
##1E338E1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1e338e;
/* rgb */ color: rgb(30, 51, 142);
/* oklch */ color: oklch(36.8% 0.152 267.8);
Tailwind
colors: {
  custom: {
    50: '#6d6ab0',
    500: '#1e338e',
    950: '#000000',
  },
}
SCSS
$custom: #1e338e;
$custom-light: #6d6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e338e",
  "rgb": {
    "r": 30,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 228.75,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36843,
    "c": 0.15233,
    "h": 267.8
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#1E338E
secondary
#BCA74C
accent
#C940E8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1E338E

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

Preview Lab → · Contrast checker → · Palette generator →

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