#1F285F#1F285F

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

Color values

HEX#1F285F
RGBrgb(31, 40, 95)
HSLhsl(232, 51%, 25%)
HSVhsv(232, 67%, 37%)
CMYKcmyk(67.4%, 57.9%, 0%, 62.7%)
CIE-LABlab(18.52, 15.78, -34.07)
CIE-LCHlch(18.52, 37.55, 294.85°)
OKLaboklab(30.36% 0.0038 -0.0978)
OKLCHoklch(30.36% 0.098 272.2)
XYZxyz(3.3887, 2.6348, 11.1542)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F285F #5F561F
analogous
#1F485F #1F285F #361F5F
triadic
#1F285F #5F1F28 #285F1F
tetradic
#1F285F #5F1F48 #5F561F #1F5F36
square
#1F285F #5F1F48 #5F561F #1F5F36
split-complementary
#1F285F #5F361F #485F1F
monochromatic
#080A17 #101531 #1F285F #2E3B8D #3D4FBB

Accessibility & contrast

On white

13.75
#1F285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F285F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F285F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F285F#FFFFFF#000000##FFFFFF
##1F285F1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033061
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f285f;
/* rgb */ color: rgb(31, 40, 95);
/* oklch */ color: oklch(30.4% 0.098 272.2);
Tailwind
colors: {
  custom: {
    50: '#63618d',
    500: '#1f285f',
    950: '#000000',
  },
}
SCSS
$custom: #1f285f;
$custom-light: #63618d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f285f",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 231.563,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30363,
    "c": 0.09787,
    "h": 272.2
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#1F285F
secondary
#948946
accent
#C64EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #1F285F

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

Preview Lab → · Contrast checker → · Palette generator →

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