#1F3261#1F3261

#1F3261 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.087 H 265.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1F3261
RGBrgb(31, 50, 97)
HSLhsl(223, 52%, 25%)
HSVhsv(223, 68%, 38%)
CMYKcmyk(68%, 48.5%, 0%, 62%)
CIE-LABlab(21.71, 9.37, -30.25)
CIE-LCHlch(21.71, 31.66, 287.20°)
OKLaboklab(32.83% -0.007 -0.0864)
OKLCHoklch(32.83% 0.087 265.4)
XYZxyz(3.8626, 3.4352, 11.7665)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3261 #614E1F
analogous
#1F5361 #1F3261 #2D1F61
triadic
#1F3261 #611F32 #32611F
tetradic
#1F3261 #611F53 #614E1F #1F612D
square
#1F3261 #611F53 #614E1F #1F612D
split-complementary
#1F3261 #612D1F #53611F
monochromatic
#070C17 #101A33 #1F3261 #2E4A8F #3D62BE

Accessibility & contrast

On white

12.45
#1F3261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3261
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3261#FFFFFF#000000##FFFFFF
##1F32611.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3763
Deuteranopia (green-blind)
#103160
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f3261;
/* rgb */ color: rgb(31, 50, 97);
/* oklch */ color: oklch(32.8% 0.087 265.4);
Tailwind
colors: {
  custom: {
    50: '#62698e',
    500: '#1f3261',
    950: '#000000',
  },
}
SCSS
$custom: #1f3261;
$custom-light: #62698e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3261",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 97
  },
  "hsl": {
    "h": 222.727,
    "s": 51.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32832,
    "c": 0.08669,
    "h": 265.4
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#1F3261
secondary
#967F46
accent
#B24DDB
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #1F3261

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

Preview Lab → · Contrast checker → · Palette generator →

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