#1F283F#1F283F

#1F283F is a dark, muted blue. Relative luminance 0.022; OKLCH L 28.0% C 0.045 H 267.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#1F283F
RGBrgb(31, 40, 63)
HSLhsl(223, 34%, 18%)
HSVhsv(223, 51%, 25%)
CMYKcmyk(50.8%, 36.5%, 0%, 75.3%)
CIE-LABlab(16.34, 3.53, -15.87)
CIE-LCHlch(16.34, 16.26, 282.55°)
OKLaboklab(28% -0.0022 -0.0445)
OKLCHoklch(28% 0.045 267.2)
XYZxyz(2.2208, 2.1676, 5.0030)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F283F #3F361F
analogous
#1F383F #1F283F #261F3F
triadic
#1F283F #3F1F28 #283F1F
tetradic
#1F283F #3F1F38 #3F361F #1F3F26
square
#1F283F #3F1F38 #3F361F #1F3F26
split-complementary
#1F283F #3F261F #383F1F
monochromatic
#0A0D15 #0B0E16 #1F283F #334268 #475C91

Accessibility & contrast

On white

14.65
#1F283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F283F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F283F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F283F#FFFFFF#000000##FFFFFF
##1F283F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A40
Deuteranopia (green-blind)
#1D273E
Tritanopia (blue-blind)
#132D30
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f283f;
/* rgb */ color: rgb(31, 40, 63);
/* oklch */ color: oklch(28.0% 0.045 267.2);
Tailwind
colors: {
  custom: {
    50: '#5c6174',
    500: '#1f283f',
    950: '#000000',
  },
}
SCSS
$custom: #1f283f;
$custom-light: #5c6174;
$custom-dark: #000000;
JSON
{
  "hex": "#1f283f",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 223.125,
    "s": 34.043,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28002,
    "c": 0.04454,
    "h": 267.2
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#1F283F
secondary
#736747
accent
#AC5ECA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040508
muted
#79797B

Preview Lab

Preview with #1F283F

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

Preview Lab → · Contrast checker → · Palette generator →

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