#1F286E#1F286E

#1F286E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.121 H 272.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1F286E
RGBrgb(31, 40, 110)
HSLhsl(233, 56%, 28%)
HSVhsv(233, 72%, 43%)
CMYKcmyk(71.8%, 63.6%, 0%, 56.9%)
CIE-LABlab(19.78, 21.67, -41.83)
CIE-LCHlch(19.78, 47.11, 297.38°)
OKLaboklab(31.7% 0.0041 -0.1206)
OKLCHoklch(31.7% 0.121 272)
XYZxyz(4.1374, 2.9343, 15.0972)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F286E #6E651F
analogous
#1F4F6E #1F286E #3E1F6E
triadic
#1F286E #6E1F28 #286E1F
tetradic
#1F286E #6E1F4F #6E651F #1F6E3E
square
#1F286E #6E1F4F #6E651F #1F6E3E
split-complementary
#1F286E #6E3E1F #4F6E1F
monochromatic
#070918 #12173E #1F286E #2C399E #3F4EC9

Accessibility & contrast

On white

13.23
#1F286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F286E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F286E#FFFFFF#000000##FFFFFF
##1F286E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f286e;
/* rgb */ color: rgb(31, 40, 110);
/* oklch */ color: oklch(31.7% 0.121 272.0);
Tailwind
colors: {
  custom: {
    50: '#666198',
    500: '#1f286e',
    950: '#000000',
  },
}
SCSS
$custom: #1f286e;
$custom-light: #666198;
$custom-dark: #000000;
JSON
{
  "hex": "#1f286e",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 233.165,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31699,
    "c": 0.12069,
    "h": 272
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#1F286E
secondary
#A29847
accent
#CE48DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F286E

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

Preview Lab → · Contrast checker → · Palette generator →

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