#1F288D#1F288D

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

Color values

HEX#1F288D
RGBrgb(31, 40, 141)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 55%)
CMYKcmyk(78%, 71.6%, 0%, 44.7%)
CIE-LABlab(22.76, 33.43, -56.59)
CIE-LCHlch(22.76, 65.73, 300.57°)
OKLaboklab(34.79% 0.0017 -0.1638)
OKLCHoklch(34.79% 0.164 270.6)
XYZxyz(6.1299, 3.7313, 25.5913)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F288D #8D841F
analogous
#1F5F8D #1F288D #4D1F8D
triadic
#1F288D #8D1F28 #288D1F
tetradic
#1F288D #8D1F5F #8D841F #1F8D4D
square
#1F288D #8D1F5F #8D841F #1F8D4D
split-complementary
#1F288D #8D4D1F #5F8D1F
monochromatic
#090C29 #141A5B #1F288D #2A36BF #4E5AD8

Accessibility & contrast

On white

12.02
#1F288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F288D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F288D#FFFFFF#000000##FFFFFF
##1F288D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f288d;
/* rgb */ color: rgb(31, 40, 141);
/* oklch */ color: oklch(34.8% 0.164 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#1f288d',
    950: '#000000',
  },
}
SCSS
$custom: #1f288d;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f288d",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 235.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.16384,
    "h": 270.6
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#1F288D
secondary
#BBB24D
accent
#D941E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1F288D

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

Preview Lab → · Contrast checker → · Palette generator →

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