#1F2573#1F2573

#1F2573 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.132 H 272.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1F2573
RGBrgb(31, 37, 115)
HSLhsl(236, 58%, 29%)
HSVhsv(236, 73%, 45%)
CMYKcmyk(73%, 67.8%, 0%, 54.9%)
CIE-LABlab(19.44, 25.68, -45.61)
CIE-LCHlch(19.44, 52.34, 299.38°)
OKLaboklab(31.59% 0.0063 -0.1317)
OKLCHoklch(31.59% 0.132 272.7)
XYZxyz(4.3201, 2.8518, 16.5391)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2573 #736D1F
analogous
#1F4F73 #1F2573 #431F73
triadic
#1F2573 #731F25 #25731F
tetradic
#1F2573 #731F4F #736D1F #1F7343
square
#1F2573 #731F4F #736D1F #1F7343
split-complementary
#1F2573 #73431F #4F731F
monochromatic
#060818 #121543 #1F2573 #2C35A3 #414BCC

Accessibility & contrast

On white

13.37
#1F2573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F2573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2573
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2573#FFFFFF#000000##FFFFFF
##1F25731.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2573;
/* rgb */ color: rgb(31, 37, 115);
/* oklch */ color: oklch(31.6% 0.132 272.7);
Tailwind
colors: {
  custom: {
    50: '#685f9c',
    500: '#1f2573',
    950: '#000000',
  },
}
SCSS
$custom: #1f2573;
$custom-light: #685f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2573",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 115
  },
  "hsl": {
    "h": 235.714,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31593,
    "c": 0.13188,
    "h": 272.7
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#1F2573
secondary
#A7A047
accent
#D647E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2573

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

Preview Lab → · Contrast checker → · Palette generator →

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