#1F288F#1F288F

#1F288F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.166 H 270.5°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#1F288F
RGBrgb(31, 40, 143)
HSLhsl(235, 64%, 34%)
HSVhsv(235, 78%, 56%)
CMYKcmyk(78.3%, 72%, 0%, 43.9%)
CIE-LABlab(22.97, 34.17, -57.50)
CIE-LCHlch(22.97, 66.88, 300.72°)
OKLaboklab(35% 0.0015 -0.1665)
OKLCHoklch(35% 0.166 270.5)
XYZxyz(6.2801, 3.7914, 26.3821)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F288F #8F861F
analogous
#1F608F #1F288F #4E1F8F
triadic
#1F288F #8F1F28 #288F1F
tetradic
#1F288F #8F1F60 #8F861F #1F8F4E
square
#1F288F #8F1F60 #8F861F #1F8F4E
split-complementary
#1F288F #8F4E1F #608F1F
monochromatic
#090C2A #141A5D #1F288F #2A36C1 #4F5BD9

Accessibility & contrast

On white

11.94
#1F288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F288F
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F288F#FFFFFF#000000##FFFFFF
##1F288F1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f288f;
/* rgb */ color: rgb(31, 40, 143);
/* oklch */ color: oklch(35.0% 0.166 270.5);
Tailwind
colors: {
  custom: {
    50: '#6f62b1',
    500: '#1f288f',
    950: '#000000',
  },
}
SCSS
$custom: #1f288f;
$custom-light: #6f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f288f",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 235.179,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35002,
    "c": 0.16647,
    "h": 270.5
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#1F288F
secondary
#BCB34E
accent
#DA40E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F288F

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

Preview Lab → · Contrast checker → · Palette generator →

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