#1F286A#1F286A

#1F286A is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.115 H 272.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#1F286A
RGBrgb(31, 40, 106)
HSLhsl(233, 55%, 27%)
HSVhsv(233, 71%, 42%)
CMYKcmyk(70.8%, 62.3%, 0%, 58.4%)
CIE-LABlab(19.43, 20.10, -39.80)
CIE-LCHlch(19.43, 44.59, 296.80°)
OKLaboklab(31.33% 0.0042 -0.1147)
OKLCHoklch(31.33% 0.115 272.1)
XYZxyz(3.9245, 2.8491, 13.9760)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F286A #6A611F
analogous
#1F4E6A #1F286A #3C1F6A
triadic
#1F286A #6A1F28 #286A1F
tetradic
#1F286A #6A1F4E #6A611F #1F6A3C
square
#1F286A #6A1F4E #6A611F #1F6A3C
split-complementary
#1F286A #6A3C1F #4E6A1F
monochromatic
#070918 #11163B #1F286A #2D3A99 #3D4EC6

Accessibility & contrast

On white

13.38
#1F286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F286A
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F286A#FFFFFF#000000##FFFFFF
##1F286A1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f286a;
/* rgb */ color: rgb(31, 40, 106);
/* oklch */ color: oklch(31.3% 0.115 272.1);
Tailwind
colors: {
  custom: {
    50: '#656195',
    500: '#1f286a',
    950: '#000000',
  },
}
SCSS
$custom: #1f286a;
$custom-light: #656195;
$custom-dark: #000000;
JSON
{
  "hex": "#1f286a",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 232.8,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31331,
    "c": 0.11474,
    "h": 272.1
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#1F286A
secondary
#9E9447
accent
#CC4ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F286A

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

Preview Lab → · Contrast checker → · Palette generator →

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