#1F285B#1F285B

#1F285B is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.092 H 272.2°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#1F285B
RGBrgb(31, 40, 91)
HSLhsl(231, 49%, 24%)
HSVhsv(231, 66%, 36%)
CMYKcmyk(65.9%, 56%, 0%, 64.3%)
CIE-LABlab(18.21, 14.21, -31.92)
CIE-LCHlch(18.21, 34.94, 293.99°)
OKLaboklab(30.03% 0.0035 -0.0915)
OKLCHoklch(30.03% 0.092 272.2)
XYZxyz(3.2116, 2.5640, 10.2212)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F285B #5B521F
analogous
#1F465B #1F285B #341F5B
triadic
#1F285B #5B1F28 #285B1F
tetradic
#1F285B #5B1F46 #5B521F #1F5B34
square
#1F285B #5B1F46 #5B521F #1F5B34
split-complementary
#1F285B #5B341F #465B1F
monochromatic
#080A17 #0F142D #1F285B #2F3C89 #3E50B6

Accessibility & contrast

On white

13.88
#1F285B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F285B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F285B
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F285B#FFFFFF#000000##FFFFFF
##1F285B1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2F5D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f285b;
/* rgb */ color: rgb(31, 40, 91);
/* oklch */ color: oklch(30.0% 0.092 272.2);
Tailwind
colors: {
  custom: {
    50: '#62618a',
    500: '#1f285b',
    950: '#000000',
  },
}
SCSS
$custom: #1f285b;
$custom-light: #62618a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f285b",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 91
  },
  "hsl": {
    "h": 231,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30028,
    "c": 0.09155,
    "h": 272.2
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#1F285B
secondary
#908546
accent
#C44FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #1F285B

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

Preview Lab → · Contrast checker → · Palette generator →

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