#1F3271#1F3271

#1F3271 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.1% C 0.111 H 267.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#1F3271
RGBrgb(31, 50, 113)
HSLhsl(226, 57%, 28%)
HSVhsv(226, 73%, 44%)
CMYKcmyk(72.6%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.88, 15.76, -38.73)
CIE-LCHlch(22.88, 41.81, 292.14°)
OKLaboklab(34.09% -0.0049 -0.1114)
OKLCHoklch(34.09% 0.111 267.5)
XYZxyz(4.6853, 3.7643, 16.0992)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3271 #715E1F
analogous
#1F5B71 #1F3271 #351F71
triadic
#1F3271 #711F32 #32711F
tetradic
#1F3271 #711F5B #715E1F #1F7135
square
#1F3271 #711F5B #715E1F #1F7135
split-complementary
#1F3271 #71351F #5B711F
monochromatic
#070B18 #121D41 #1F3271 #2C47A1 #4060CB

Accessibility & contrast

On white

11.98
#1F3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3271
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3271#FFFFFF#000000##FFFFFF
##1F32711.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063B73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f3271;
/* rgb */ color: rgb(31, 50, 113);
/* oklch */ color: oklch(34.1% 0.111 267.5);
Tailwind
colors: {
  custom: {
    50: '#66699a',
    500: '#1f3271',
    950: '#000000',
  },
}
SCSS
$custom: #1f3271;
$custom-light: #66699a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3271",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 226.098,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.11147,
    "h": 267.5
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#1F3271
secondary
#A58F47
accent
#BD48E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F3271

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

Preview Lab → · Contrast checker → · Palette generator →

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