#1F2178#1F2178

#1F2178 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.144 H 273.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2178
RGBrgb(31, 33, 120)
HSLhsl(239, 59%, 30%)
HSVhsv(239, 74%, 47%)
CMYKcmyk(74.2%, 72.5%, 0%, 52.9%)
CIE-LABlab(18.95, 30.22, -49.63)
CIE-LCHlch(18.95, 58.10, 301.34°)
OKLaboklab(31.39% 0.0086 -0.1435)
OKLCHoklch(31.39% 0.144 273.4)
XYZxyz(4.4980, 2.7346, 18.0564)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2178 #78761F
analogous
#1F4D78 #1F2178 #4A1F78
triadic
#1F2178 #781F21 #21781F
tetradic
#1F2178 #781F4D #78761F #1F784A
square
#1F2178 #781F4D #78761F #1F784A
split-complementary
#1F2178 #784A1F #4D781F
monochromatic
#060718 #121447 #1F2178 #2C2EA9 #4346CE

Accessibility & contrast

On white

13.57
#1F2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2178
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2178#FFFFFF#000000##FFFFFF
##1F21781.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2178;
/* rgb */ color: rgb(31, 33, 120);
/* oklch */ color: oklch(31.4% 0.144 273.4);
Tailwind
colors: {
  custom: {
    50: '#695da0',
    500: '#1f2178',
    950: '#000000',
  },
}
SCSS
$custom: #1f2178;
$custom-light: #695da0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2178",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 238.652,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31387,
    "c": 0.14375,
    "h": 273.4
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#1F2178
secondary
#ABA947
accent
#DF46E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1F2178

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

Preview Lab → · Contrast checker → · Palette generator →

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