#1F288C#1F288C

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

Color values

HEX#1F288C
RGBrgb(31, 40, 140)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 55%)
CMYKcmyk(77.9%, 71.4%, 0%, 45.1%)
CIE-LABlab(22.66, 33.07, -56.14)
CIE-LCHlch(22.66, 65.16, 300.50°)
OKLaboklab(34.69% 0.0018 -0.1625)
OKLCHoklch(34.69% 0.163 270.6)
XYZxyz(6.0559, 3.7017, 25.2012)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F288C #8C831F
analogous
#1F5E8C #1F288C #4C1F8C
triadic
#1F288C #8C1F28 #288C1F
tetradic
#1F288C #8C1F5E #8C831F #1F8C4C
square
#1F288C #8C1F5E #8C831F #1F8C4C
split-complementary
#1F288C #8C4C1F #5E8C1F
monochromatic
#090B28 #141A5A #1F288C #2A36BE #4E59D8

Accessibility & contrast

On white

12.07
#1F288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F288C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F288C#FFFFFF#000000##FFFFFF
##1F288C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f288c;
/* rgb */ color: rgb(31, 40, 140);
/* oklch */ color: oklch(34.7% 0.163 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e62af',
    500: '#1f288c',
    950: '#000000',
  },
}
SCSS
$custom: #1f288c;
$custom-light: #6e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f288c",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 235.046,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.16252,
    "h": 270.6
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#1F288C
secondary
#BBB14C
accent
#D941E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F288C

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

Preview Lab → · Contrast checker → · Palette generator →

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