#1F196C#1F196C

#1F196C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.137 H 276.7°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#1F196C
RGBrgb(31, 25, 108)
HSLhsl(244, 62%, 26%)
HSVhsv(244, 77%, 42%)
CMYKcmyk(71.3%, 76.9%, 0%, 57.6%)
CIE-LABlab(15.85, 30.94, -46.98)
CIE-LCHlch(15.85, 56.25, 303.37°)
OKLaboklab(28.78% 0.0159 -0.1357)
OKLCHoklch(28.78% 0.137 276.7)
XYZxyz(3.6186, 2.0690, 14.3931)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F196C #666C19
analogous
#193C6C #1F196C #48196C
triadic
#1F196C #6C1F19 #196C1F
tetradic
#1F196C #6C193C #666C19 #196C48
square
#1F196C #6C193C #666C19 #196C48
split-complementary
#1F196C #6C4819 #3C6C19
monochromatic
#070619 #110D3A #1F196C #2D259E #3C30CF

Accessibility & contrast

On white

14.85
#1F196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F196C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F196C
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F196C#FFFFFF#000000##FFFFFF
##1F196C1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f196c;
/* rgb */ color: rgb(31, 25, 108);
/* oklch */ color: oklch(28.8% 0.137 276.7);
Tailwind
colors: {
  custom: {
    50: '#675797',
    500: '#1f196c',
    950: '#000000',
  },
}
SCSS
$custom: #1f196c;
$custom-light: #675797;
$custom-dark: #000000;
JSON
{
  "hex": "#1f196c",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 244.337,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28783,
    "c": 0.13666,
    "h": 276.7
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#1F196C
secondary
#9AA13F
accent
#E542DA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F196C

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

Preview Lab → · Contrast checker → · Palette generator →

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