#1F3166#1F3166

#1F3166 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.096 H 267.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F3166
RGBrgb(31, 49, 102)
HSLhsl(225, 53%, 26%)
HSVhsv(225, 70%, 40%)
CMYKcmyk(69.6%, 52%, 0%, 60%)
CIE-LABlab(21.75, 12.07, -33.44)
CIE-LCHlch(21.75, 35.55, 289.85°)
OKLaboklab(32.98% -0.0051 -0.0958)
OKLCHoklch(32.98% 0.096 267)
XYZxyz(4.0608, 3.4469, 13.0191)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3166 #66541F
analogous
#1F5466 #1F3166 #301F66
triadic
#1F3166 #661F31 #31661F
tetradic
#1F3166 #661F54 #66541F #1F6630
square
#1F3166 #661F54 #66541F #1F6630
split-complementary
#1F3166 #66301F #54661F
monochromatic
#070B17 #111A37 #1F3166 #2D4895 #3C5EC4

Accessibility & contrast

On white

12.43
#1F3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3166
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3166#FFFFFF#000000##FFFFFF
##1F31661.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143868
Deuteranopia (green-blind)
#043165
Tritanopia (blue-blind)
#003D46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f3166;
/* rgb */ color: rgb(31, 49, 102);
/* oklch */ color: oklch(33.0% 0.096 267.0);
Tailwind
colors: {
  custom: {
    50: '#646892',
    500: '#1f3166',
    950: '#000000',
  },
}
SCSS
$custom: #1f3166;
$custom-light: #646892;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3166",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 224.789,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32978,
    "c": 0.09596,
    "h": 267
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#1F3166
secondary
#9A8546
accent
#B84BDD
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1F3166

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

Preview Lab → · Contrast checker → · Palette generator →

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