#1F2F78#1F2F78

#1F2F78 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.126 H 269.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#1F2F78
RGBrgb(31, 47, 120)
HSLhsl(229, 59%, 30%)
HSVhsv(229, 74%, 47%)
CMYKcmyk(74.2%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.58, 20.67, -43.68)
CIE-LCHlch(22.58, 48.32, 295.33°)
OKLaboklab(34.05% -0.0018 -0.1259)
OKLCHoklch(34.05% 0.126 269.2)
XYZxyz(4.9706, 3.6799, 18.2140)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F78 #78681F
analogous
#1F5C78 #1F2F78 #3B1F78
triadic
#1F2F78 #781F2F #2F781F
tetradic
#1F2F78 #781F5C #78681F #1F783B
square
#1F2F78 #781F5C #78681F #1F783B
split-complementary
#1F2F78 #783B1F #5C781F
monochromatic
#060A18 #121C47 #1F2F78 #2C42A9 #435CCE

Accessibility & contrast

On white

12.10
#1F2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F78
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F78#FFFFFF#000000##FFFFFF
##1F2F781.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2f78;
/* rgb */ color: rgb(31, 47, 120);
/* oklch */ color: oklch(34.1% 0.126 269.2);
Tailwind
colors: {
  custom: {
    50: '#6867a0',
    500: '#1f2f78',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f78;
$custom-light: #6867a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f78",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 229.213,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34054,
    "c": 0.12596,
    "h": 269.2
  },
  "luminance": 0.0368
}

Semantic roles & 50–950 ramp

primary
#1F2F78
secondary
#AB9947
accent
#C646E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1F2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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