#1F2F6F#1F2F6F

#1F2F6F is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.113 H 268.9°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1F2F6F
RGBrgb(31, 47, 111)
HSLhsl(228, 56%, 28%)
HSVhsv(228, 72%, 44%)
CMYKcmyk(72.1%, 57.7%, 0%, 56.5%)
CIE-LABlab(21.84, 17.10, -39.12)
CIE-LCHlch(21.84, 42.69, 293.61°)
OKLaboklab(33.26% -0.0022 -0.1126)
OKLCHoklch(33.26% 0.113 268.9)
XYZxyz(4.4498, 3.4716, 15.4714)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F6F #6F5F1F
analogous
#1F576F #1F2F6F #371F6F
triadic
#1F2F6F #6F1F2F #2F6F1F
tetradic
#1F2F6F #6F1F57 #6F5F1F #1F6F37
square
#1F2F6F #6F1F57 #6F5F1F #1F6F37
split-complementary
#1F2F6F #6F371F #576F1F
monochromatic
#070A18 #121B3F #1F2F6F #2C439F #3F5BC9

Accessibility & contrast

On white

12.39
#1F2F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F6F
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F6F#FFFFFF#000000##FFFFFF
##1F2F6F1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2f6f;
/* rgb */ color: rgb(31, 47, 111);
/* oklch */ color: oklch(33.3% 0.113 268.9);
Tailwind
colors: {
  custom: {
    50: '#666799',
    500: '#1f2f6f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f6f;
$custom-light: #666799;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f6f",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 228,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33264,
    "c": 0.11258,
    "h": 268.9
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#1F2F6F
secondary
#A39147
accent
#C148E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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