#1F2988#1F2988

#1F2988 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.156 H 270.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#1F2988
RGBrgb(31, 41, 136)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 77%, 53%)
CMYKcmyk(77.2%, 69.9%, 0%, 46.7%)
CIE-LABlab(22.49, 30.93, -53.92)
CIE-LCHlch(22.49, 62.16, 299.84°)
OKLaboklab(34.44% 0.0017 -0.156)
OKLCHoklch(34.44% 0.156 270.6)
XYZxyz(5.8004, 3.6541, 23.6874)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2988 #887E1F
analogous
#1F5D88 #1F2988 #4A1F88
triadic
#1F2988 #881F29 #29881F
tetradic
#1F2988 #881F5D #887E1F #1F884A
square
#1F2988 #881F5D #887E1F #1F884A
split-complementary
#1F2988 #884A1F #5D881F
monochromatic
#080B24 #141A56 #1F2988 #2A38BA #4B59D6

Accessibility & contrast

On white

12.13
#1F2988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2988
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2988#FFFFFF#000000##FFFFFF
##1F29881.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2988;
/* rgb */ color: rgb(31, 41, 136);
/* oklch */ color: oklch(34.4% 0.156 270.6);
Tailwind
colors: {
  custom: {
    50: '#6d63ac',
    500: '#1f2988',
    950: '#000000',
  },
}
SCSS
$custom: #1f2988;
$custom-light: #6d63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2988",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 234.286,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34442,
    "c": 0.15603,
    "h": 270.6
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#1F2988
secondary
#B9AE4A
accent
#D642E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2988

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

Preview Lab → · Contrast checker → · Palette generator →

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