#1F2388#1F2388

#1F2388 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.163 H 271.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#1F2388
RGBrgb(31, 35, 136)
HSLhsl(238, 63%, 33%)
HSVhsv(238, 77%, 53%)
CMYKcmyk(77.2%, 74.3%, 0%, 46.7%)
CIE-LABlab(21.10, 34.76, -56.22)
CIE-LCHlch(21.10, 66.10, 301.73°)
OKLaboklab(33.43% 0.005 -0.1627)
OKLCHoklch(33.43% 0.163 271.8)
XYZxyz(5.6085, 3.2703, 23.6234)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2388 #88841F
analogous
#1F5888 #1F2388 #4F1F88
triadic
#1F2388 #881F23 #23881F
tetradic
#1F2388 #881F58 #88841F #1F884F
square
#1F2388 #881F58 #88841F #1F884F
split-complementary
#1F2388 #884F1F #58881F
monochromatic
#080924 #141656 #1F2388 #2A30BA #4B51D6

Accessibility & contrast

On white

12.69
#1F2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2388
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2388#FFFFFF#000000##FFFFFF
##1F23881.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2388;
/* rgb */ color: rgb(31, 35, 136);
/* oklch */ color: oklch(33.4% 0.163 271.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fac',
    500: '#1f2388',
    950: '#000000',
  },
}
SCSS
$custom: #1f2388;
$custom-light: #6d5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2388",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 237.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33435,
    "c": 0.1628,
    "h": 271.8
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#1F2388
secondary
#B9B44A
accent
#E042E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F2388

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

Preview Lab → · Contrast checker → · Palette generator →

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