#1F4E89#1F4E89

#1F4E89 is a dark, moderate cyan. Relative luminance 0.075; OKLCH L 42.4% C 0.111 H 255.7°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#1F4E89
RGBrgb(31, 78, 137)
HSLhsl(213, 63%, 33%)
HSVhsv(213, 77%, 54%)
CMYKcmyk(77.4%, 43.1%, 0%, 46.3%)
CIE-LABlab(33.02, 6.03, -37.48)
CIE-LCHlch(33.02, 37.96, 279.14°)
OKLaboklab(42.41% -0.0273 -0.1072)
OKLCHoklch(42.41% 0.111 255.7)
XYZxyz(7.8032, 7.5453, 24.7072)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E89 #895A1F
analogous
#1F8389 #1F4E89 #251F89
triadic
#1F4E89 #891F4E #4E891F
tetradic
#1F4E89 #891F83 #895A1F #1F8925
square
#1F4E89 #891F83 #895A1F #1F8925
split-complementary
#1F4E89 #89251F #83891F
monochromatic
#081525 #143257 #1F4E89 #2A6ABB #4C89D6

Accessibility & contrast

On white

8.37
#1F4E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F4E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E89
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E89#FFFFFF#000000##FFFFFF
##1F4E891.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538B
Deuteranopia (green-blind)
#1F4988
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4e89;
/* rgb */ color: rgb(31, 78, 137);
/* oklch */ color: oklch(42.4% 0.111 255.7);
Tailwind
colors: {
  custom: {
    50: '#6b7fac',
    500: '#1f4e89',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e89;
$custom-light: #6b7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e89",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 137
  },
  "hsl": {
    "h": 213.396,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42407,
    "c": 0.11058,
    "h": 255.7
  },
  "luminance": 0.07546
}

Semantic roles & 50–950 ramp

primary
#1F4E89
secondary
#B9884B
accent
#9D42E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F4E89

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

Preview Lab → · Contrast checker → · Palette generator →

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