#1F286D#1F286D

#1F286D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.6% C 0.119 H 272.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#1F286D
RGBrgb(31, 40, 109)
HSLhsl(233, 56%, 27%)
HSVhsv(233, 72%, 43%)
CMYKcmyk(71.6%, 63.3%, 0%, 57.3%)
CIE-LABlab(19.69, 21.28, -41.33)
CIE-LCHlch(19.69, 46.48, 297.24°)
OKLaboklab(31.61% 0.0042 -0.1191)
OKLCHoklch(31.61% 0.119 272)
XYZxyz(4.0833, 2.9126, 14.8120)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F286D #6D641F
analogous
#1F4F6D #1F286D #3D1F6D
triadic
#1F286D #6D1F28 #286D1F
tetradic
#1F286D #6D1F4F #6D641F #1F6D3D
square
#1F286D #6D1F4F #6D641F #1F6D3D
split-complementary
#1F286D #6D3D1F #4F6D1F
monochromatic
#070918 #11173D #1F286D #2D399D #3E4EC8

Accessibility & contrast

On white

13.27
#1F286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F286D
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F286D#FFFFFF#000000##FFFFFF
##1F286D1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f286d;
/* rgb */ color: rgb(31, 40, 109);
/* oklch */ color: oklch(31.6% 0.119 272.0);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#1f286d',
    950: '#000000',
  },
}
SCSS
$custom: #1f286d;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#1f286d",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 233.077,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31606,
    "c": 0.11921,
    "h": 272
  },
  "luminance": 0.02913
}

Semantic roles & 50–950 ramp

primary
#1F286D
secondary
#A19747
accent
#CE49DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F286D

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

Preview Lab → · Contrast checker → · Palette generator →

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