#1F288A#1F288A

#1F288A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.160 H 270.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1F288A
RGBrgb(31, 40, 138)
HSLhsl(235, 63%, 33%)
HSVhsv(235, 78%, 54%)
CMYKcmyk(77.5%, 71%, 0%, 45.9%)
CIE-LABlab(22.45, 32.33, -55.23)
CIE-LCHlch(22.45, 64.00, 300.34°)
OKLaboklab(34.48% 0.0021 -0.1598)
OKLCHoklch(34.48% 0.16 270.7)
XYZxyz(5.9097, 3.6432, 24.4316)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F288A #8A811F
analogous
#1F5D8A #1F288A #4B1F8A
triadic
#1F288A #8A1F28 #288A1F
tetradic
#1F288A #8A1F5D #8A811F #1F8A4B
square
#1F288A #8A1F5D #8A811F #1F8A4B
split-complementary
#1F288A #8A4B1F #5D8A1F
monochromatic
#090B26 #141A58 #1F288A #2A36BC #4C58D7

Accessibility & contrast

On white

12.15
#1F288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F288A
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F288A#FFFFFF#000000##FFFFFF
##1F288A1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f288a;
/* rgb */ color: rgb(31, 40, 138);
/* oklch */ color: oklch(34.5% 0.160 270.7);
Tailwind
colors: {
  custom: {
    50: '#6d62ad',
    500: '#1f288a',
    950: '#000000',
  },
}
SCSS
$custom: #1f288a;
$custom-light: #6d62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f288a",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 234.953,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.15986,
    "h": 270.7
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#1F288A
secondary
#BAB04B
accent
#D841E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F288A

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

Preview Lab → · Contrast checker → · Palette generator →

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