#1F3072#1F3072

#1F3072 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.7% C 0.116 H 268.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#1F3072
RGBrgb(31, 48, 114)
HSLhsl(228, 57%, 28%)
HSVhsv(228, 73%, 45%)
CMYKcmyk(72.8%, 57.9%, 0%, 55.3%)
CIE-LABlab(22.37, 17.58, -40.19)
CIE-LCHlch(22.37, 43.86, 293.63°)
OKLaboklab(33.74% -0.0029 -0.1157)
OKLCHoklch(33.74% 0.116 268.5)
XYZxyz(4.6582, 3.6197, 16.3695)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3072 #72611F
analogous
#1F5972 #1F3072 #371F72
triadic
#1F3072 #721F30 #30721F
tetradic
#1F3072 #721F59 #72611F #1F7237
square
#1F3072 #721F59 #72611F #1F7237
split-complementary
#1F3072 #72371F #59721F
monochromatic
#070A18 #121C42 #1F3072 #2C44A2 #405DCB

Accessibility & contrast

On white

12.18
#1F3072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F3072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3072
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3072#FFFFFF#000000##FFFFFF
##1F30721.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f3072;
/* rgb */ color: rgb(31, 48, 114);
/* oklch */ color: oklch(33.7% 0.116 268.5);
Tailwind
colors: {
  custom: {
    50: '#66679b',
    500: '#1f3072',
    950: '#000000',
  },
}
SCSS
$custom: #1f3072;
$custom-light: #66679b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3072",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 114
  },
  "hsl": {
    "h": 227.711,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33739,
    "c": 0.11573,
    "h": 268.5
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#1F3072
secondary
#A69247
accent
#C147E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F3072

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

Preview Lab → · Contrast checker → · Palette generator →

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