#1F2F60#1F2F60

#1F2F60 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.0% C 0.089 H 267.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1F2F60
RGBrgb(31, 47, 96)
HSLhsl(225, 51%, 25%)
HSVhsv(225, 68%, 38%)
CMYKcmyk(67.7%, 51%, 0%, 62.4%)
CIE-LABlab(20.71, 11.12, -31.20)
CIE-LCHlch(20.71, 33.12, 289.62°)
OKLaboklab(32.04% -0.0038 -0.0893)
OKLCHoklch(32.04% 0.089 267.6)
XYZxyz(3.6922, 3.1685, 11.4811)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F60 #60501F
analogous
#1F4F60 #1F2F60 #301F60
triadic
#1F2F60 #601F2F #2F601F
tetradic
#1F2F60 #601F4F #60501F #1F6030
square
#1F2F60 #601F4F #60501F #1F6030
split-complementary
#1F2F60 #60301F #4F601F
monochromatic
#070B17 #101832 #1F2F60 #2E468E #3D5CBD

Accessibility & contrast

On white

12.85
#1F2F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F60
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F60#FFFFFF#000000##FFFFFF
##1F2F601.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163562
Deuteranopia (green-blind)
#092F5F
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2f60;
/* rgb */ color: rgb(31, 47, 96);
/* oklch */ color: oklch(32.0% 0.089 267.6);
Tailwind
colors: {
  custom: {
    50: '#62678d',
    500: '#1f2f60',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f60;
$custom-light: #62678d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f60",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 96
  },
  "hsl": {
    "h": 225.231,
    "s": 51.181,
    "l": 24.902
  },
  "oklch": {
    "l": 0.32043,
    "c": 0.08934,
    "h": 267.6
  },
  "luminance": 0.03169
}

Semantic roles & 50–950 ramp

primary
#1F2F60
secondary
#958146
accent
#B84DDB
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1F2F60

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

Preview Lab → · Contrast checker → · Palette generator →

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