#1F286B#1F286B

#1F286B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.4% C 0.116 H 272.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1F286B
RGBrgb(31, 40, 107)
HSLhsl(233, 55%, 27%)
HSVhsv(233, 71%, 42%)
CMYKcmyk(71%, 62.6%, 0%, 58%)
CIE-LABlab(19.52, 20.49, -40.31)
CIE-LCHlch(19.52, 45.22, 296.95°)
OKLaboklab(31.42% 0.0042 -0.1162)
OKLCHoklch(31.42% 0.116 272.1)
XYZxyz(3.9768, 2.8701, 14.2515)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F286B #6B621F
analogous
#1F4E6B #1F286B #3C1F6B
triadic
#1F286B #6B1F28 #286B1F
tetradic
#1F286B #6B1F4E #6B621F #1F6B3C
square
#1F286B #6B1F4E #6B621F #1F6B3C
split-complementary
#1F286B #6B3C1F #4E6B1F
monochromatic
#070918 #11163C #1F286B #2D3A9A #3D4EC7

Accessibility & contrast

On white

13.34
#1F286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F286B
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F286B#FFFFFF#000000##FFFFFF
##1F286B1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f286b;
/* rgb */ color: rgb(31, 40, 107);
/* oklch */ color: oklch(31.4% 0.116 272.1);
Tailwind
colors: {
  custom: {
    50: '#656196',
    500: '#1f286b',
    950: '#000000',
  },
}
SCSS
$custom: #1f286b;
$custom-light: #656196;
$custom-dark: #000000;
JSON
{
  "hex": "#1f286b",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 232.895,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31422,
    "c": 0.11623,
    "h": 272.1
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#1F286B
secondary
#9F9547
accent
#CD49DE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F286B

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

Preview Lab → · Contrast checker → · Palette generator →

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