#1F286F#1F286F

#1F286F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.122 H 271.9°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#1F286F
RGBrgb(31, 40, 111)
HSLhsl(233, 56%, 28%)
HSVhsv(233, 72%, 44%)
CMYKcmyk(72.1%, 64%, 0%, 56.5%)
CIE-LABlab(19.87, 22.06, -42.33)
CIE-LCHlch(19.87, 47.73, 297.52°)
OKLaboklab(31.79% 0.0041 -0.1221)
OKLCHoklch(31.79% 0.122 271.9)
XYZxyz(4.1921, 2.9562, 15.3855)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F286F #6F661F
analogous
#1F506F #1F286F #3E1F6F
triadic
#1F286F #6F1F28 #286F1F
tetradic
#1F286F #6F1F50 #6F661F #1F6F3E
square
#1F286F #6F1F50 #6F661F #1F6F3E
split-complementary
#1F286F #6F3E1F #506F1F
monochromatic
#070918 #12173F #1F286F #2C399F #3F4FC9

Accessibility & contrast

On white

13.20
#1F286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F286F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F286F#FFFFFF#000000##FFFFFF
##1F286F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f286f;
/* rgb */ color: rgb(31, 40, 111);
/* oklch */ color: oklch(31.8% 0.122 271.9);
Tailwind
colors: {
  custom: {
    50: '#666199',
    500: '#1f286f',
    950: '#000000',
  },
}
SCSS
$custom: #1f286f;
$custom-light: #666199;
$custom-dark: #000000;
JSON
{
  "hex": "#1f286f",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 233.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31792,
    "c": 0.12216,
    "h": 271.9
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#1F286F
secondary
#A39947
accent
#CF48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F286F

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

Preview Lab → · Contrast checker → · Palette generator →

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