#1E2F7E#1E2F7E

#1E2F7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.135 H 268.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#1E2F7E
RGBrgb(30, 47, 126)
HSLhsl(229, 62%, 31%)
HSVhsv(229, 76%, 49%)
CMYKcmyk(76.2%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.05, 22.90, -46.72)
CIE-LCHlch(23.05, 52.03, 296.11°)
OKLaboklab(34.55% -0.0028 -0.1349)
OKLCHoklch(34.55% 0.135 268.8)
XYZxyz(5.3165, 3.8148, 20.1908)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2F7E #7E6D1E
analogous
#1E5F7E #1E2F7E #3D1E7E
triadic
#1E2F7E #7E1E2F #2F7E1E
tetradic
#1E2F7E #7E1E5F #7E6D1E #1E7E3D
square
#1E2F7E #7E1E5F #7E6D1E #1E7E3D
split-complementary
#1E2F7E #7E3D1E #5F7E1E
monochromatic
#060A1B #121D4D #1E2F7E #2A41AF #445DD2

Accessibility & contrast

On white

11.91
#1E2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1E2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2F7E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2F7E#FFFFFF#000000##FFFFFF
##1E2F7E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1e2f7e;
/* rgb */ color: rgb(30, 47, 126);
/* oklch */ color: oklch(34.5% 0.135 268.8);
Tailwind
colors: {
  custom: {
    50: '#6967a4',
    500: '#1e2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1e2f7e;
$custom-light: #6967a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2f7e",
  "rgb": {
    "r": 30,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 229.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.13495,
    "h": 268.8
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#1E2F7E
secondary
#B19E47
accent
#C843E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1E2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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