#1F288E#1F288E

#1F288E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.165 H 270.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#1F288E
RGBrgb(31, 40, 142)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 56%)
CMYKcmyk(78.2%, 71.8%, 0%, 44.3%)
CIE-LABlab(22.87, 33.80, -57.05)
CIE-LCHlch(22.87, 66.31, 300.65°)
OKLaboklab(34.9% 0.0016 -0.1651)
OKLCHoklch(34.9% 0.165 270.6)
XYZxyz(6.2047, 3.7612, 25.9849)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F288E #8E851F
analogous
#1F608E #1F288E #4E1F8E
triadic
#1F288E #8E1F28 #288E1F
tetradic
#1F288E #8E1F60 #8E851F #1F8E4E
square
#1F288E #8E1F60 #8E851F #1F8E4E
split-complementary
#1F288E #8E4E1F #608E1F
monochromatic
#090C2A #141A5C #1F288E #2A36C0 #4F5AD9

Accessibility & contrast

On white

11.98
#1F288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F288E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F288E#FFFFFF#000000##FFFFFF
##1F288E1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f288e;
/* rgb */ color: rgb(31, 40, 142);
/* oklch */ color: oklch(34.9% 0.165 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e62b0',
    500: '#1f288e',
    950: '#000000',
  },
}
SCSS
$custom: #1f288e;
$custom-light: #6e62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f288e",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 235.135,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34896,
    "c": 0.16515,
    "h": 270.6
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#1F288E
secondary
#BBB34D
accent
#DA41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1F288E

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

Preview Lab → · Contrast checker → · Palette generator →

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