#1F2D78#1F2D78

#1F2D78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.129 H 269.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2D78
RGBrgb(31, 45, 120)
HSLhsl(231, 59%, 30%)
HSVhsv(231, 74%, 47%)
CMYKcmyk(74.2%, 62.5%, 0%, 52.9%)
CIE-LABlab(22.03, 22.07, -44.58)
CIE-LCHlch(22.03, 49.74, 296.34°)
OKLaboklab(33.64% -0.0002 -0.1286)
OKLCHoklch(33.64% 0.129 269.9)
XYZxyz(4.8925, 3.5236, 18.1880)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D78 #786A1F
analogous
#1F5A78 #1F2D78 #3E1F78
triadic
#1F2D78 #781F2D #2D781F
tetradic
#1F2D78 #781F5A #786A1F #1F783E
square
#1F2D78 #781F5A #786A1F #1F783E
split-complementary
#1F2D78 #783E1F #5A781F
monochromatic
#060918 #121B47 #1F2D78 #2C3FA9 #4359CE

Accessibility & contrast

On white

12.32
#1F2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D78
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D78#FFFFFF#000000##FFFFFF
##1F2D781.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2d78;
/* rgb */ color: rgb(31, 45, 120);
/* oklch */ color: oklch(33.6% 0.129 269.9);
Tailwind
colors: {
  custom: {
    50: '#6865a0',
    500: '#1f2d78',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d78;
$custom-light: #6865a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d78",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 230.562,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33641,
    "c": 0.12863,
    "h": 269.9
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#1F2D78
secondary
#AB9C47
accent
#CA46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1F2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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