#1F2C88#1F2C88

#1F2C88 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.152 H 270.0°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#1F2C88
RGBrgb(31, 44, 136)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 77%, 53%)
CMYKcmyk(77.2%, 67.6%, 0%, 46.7%)
CIE-LABlab(23.24, 28.95, -52.70)
CIE-LCHlch(23.24, 60.13, 298.78°)
OKLaboklab(34.98% -0.0001 -0.1524)
OKLCHoklch(34.98% 0.152 270)
XYZxyz(5.9082, 3.8696, 23.7233)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C88 #887B1F
analogous
#1F6188 #1F2C88 #461F88
triadic
#1F2C88 #881F2C #2C881F
tetradic
#1F2C88 #881F61 #887B1F #1F8846
square
#1F2C88 #881F61 #887B1F #1F8846
split-complementary
#1F2C88 #88461F #61881F
monochromatic
#080C24 #141C56 #1F2C88 #2A3CBA #4B5DD6

Accessibility & contrast

On white

11.84
#1F2C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C88
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C88#FFFFFF#000000##FFFFFF
##1F2C881.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2c88;
/* rgb */ color: rgb(31, 44, 136);
/* oklch */ color: oklch(35.0% 0.152 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c65ac',
    500: '#1f2c88',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c88;
$custom-light: #6c65ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c88",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 136
  },
  "hsl": {
    "h": 232.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34983,
    "c": 0.15244,
    "h": 270
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#1F2C88
secondary
#B9AB4A
accent
#D242E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2C88

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

Preview Lab → · Contrast checker → · Palette generator →

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