#1F2F6D#1F2F6D

#1F2F6D is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.1% C 0.110 H 268.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2F6D
RGBrgb(31, 47, 109)
HSLhsl(228, 56%, 27%)
HSVhsv(228, 72%, 43%)
CMYKcmyk(71.6%, 56.9%, 0%, 57.3%)
CIE-LABlab(21.68, 16.30, -38.09)
CIE-LCHlch(21.68, 41.43, 293.17°)
OKLaboklab(33.09% -0.0023 -0.1095)
OKLCHoklch(33.09% 0.11 268.8)
XYZxyz(4.3410, 3.4280, 14.8979)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F6D #6D5D1F
analogous
#1F566D #1F2F6D #361F6D
triadic
#1F2F6D #6D1F2F #2F6D1F
tetradic
#1F2F6D #6D1F56 #6D5D1F #1F6D36
square
#1F2F6D #6D1F56 #6D5D1F #1F6D36
split-complementary
#1F2F6D #6D361F #566D1F
monochromatic
#070A18 #111A3D #1F2F6D #2D449D #3E5BC8

Accessibility & contrast

On white

12.46
#1F2F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2F6D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F6D#FFFFFF#000000##FFFFFF
##1F2F6D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02386F
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2f6d;
/* rgb */ color: rgb(31, 47, 109);
/* oklch */ color: oklch(33.1% 0.110 268.8);
Tailwind
colors: {
  custom: {
    50: '#656797',
    500: '#1f2f6d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f6d;
$custom-light: #656797;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f6d",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 109
  },
  "hsl": {
    "h": 227.692,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33094,
    "c": 0.10955,
    "h": 268.8
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#1F2F6D
secondary
#A18F47
accent
#C049DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F2F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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