#1F2688#1F2688

#1F2688 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.159 H 271.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#1F2688
RGBrgb(31, 38, 136)
HSLhsl(236, 63%, 33%)
HSVhsv(236, 77%, 53%)
CMYKcmyk(77.2%, 72.1%, 0%, 46.7%)
CIE-LABlab(21.78, 32.88, -55.09)
CIE-LCHlch(21.78, 64.16, 300.83°)
OKLaboklab(33.93% 0.0034 -0.1594)
OKLCHoklch(33.93% 0.159 271.2)
XYZxyz(5.7006, 3.4545, 23.6541)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2688 #88811F
analogous
#1F5A88 #1F2688 #4C1F88
triadic
#1F2688 #881F26 #26881F
tetradic
#1F2688 #881F5A #88811F #1F884C
square
#1F2688 #881F5A #88811F #1F884C
split-complementary
#1F2688 #884C1F #5A881F
monochromatic
#080A24 #141856 #1F2688 #2A34BA #4B55D6

Accessibility & contrast

On white

12.42
#1F2688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2688
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2688#FFFFFF#000000##FFFFFF
##1F26881.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2688;
/* rgb */ color: rgb(31, 38, 136);
/* oklch */ color: oklch(33.9% 0.159 271.2);
Tailwind
colors: {
  custom: {
    50: '#6d61ac',
    500: '#1f2688',
    950: '#000000',
  },
}
SCSS
$custom: #1f2688;
$custom-light: #6d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2688",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 236,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33926,
    "c": 0.15949,
    "h": 271.2
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

primary
#1F2688
secondary
#B9B14A
accent
#DB42E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2688

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

Preview Lab → · Contrast checker → · Palette generator →

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