#1F456F#1F456F

#1F456F is a dark, moderate cyan. Relative luminance 0.057; OKLCH L 38.5% C 0.084 H 252.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#1F456F
RGBrgb(31, 69, 111)
HSLhsl(212, 56%, 28%)
HSVhsv(212, 72%, 44%)
CMYKcmyk(72.1%, 37.8%, 0%, 56.5%)
CIE-LABlab(28.63, 1.75, -28.25)
CIE-LCHlch(28.63, 28.30, 273.54°)
OKLaboklab(38.48% -0.0248 -0.0802)
OKLCHoklch(38.48% 0.084 252.8)
XYZxyz(5.5614, 5.6947, 15.8419)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F456F #6F491F
analogous
#1F6D6F #1F456F #211F6F
triadic
#1F456F #6F1F45 #456F1F
tetradic
#1F456F #6F1F6D #6F491F #1F6F21
square
#1F456F #6F1F6D #6F491F #1F6F21
split-complementary
#1F456F #6F211F #6D6F1F
monochromatic
#070F18 #12273F #1F456F #2C639F #3F81C9

Accessibility & contrast

On white

9.82
#1F456F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F456F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F456F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F456F#FFFFFF#000000##FFFFFF
##1F456F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324871
Deuteranopia (green-blind)
#27406E
Tritanopia (blue-blind)
#004F54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f456f;
/* rgb */ color: rgb(31, 69, 111);
/* oklch */ color: oklch(38.5% 0.084 252.8);
Tailwind
colors: {
  custom: {
    50: '#657898',
    500: '#1f456f',
    950: '#000000',
  },
}
SCSS
$custom: #1f456f;
$custom-light: #657898;
$custom-dark: #000000;
JSON
{
  "hex": "#1f456f",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 111
  },
  "hsl": {
    "h": 211.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.08399,
    "h": 252.8
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#1F456F
secondary
#A37747
accent
#9848E0
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F456F

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

Preview Lab → · Contrast checker → · Palette generator →

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