#1F196E#1F196E

#1F196E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.139 H 276.4°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#1F196E
RGBrgb(31, 25, 110)
HSLhsl(244, 63%, 26%)
HSVhsv(244, 77%, 43%)
CMYKcmyk(71.8%, 77.3%, 0%, 56.9%)
CIE-LABlab(16.06, 31.65, -47.92)
CIE-LCHlch(16.06, 57.43, 303.44°)
OKLaboklab(29.01% 0.0155 -0.1385)
OKLCHoklch(29.01% 0.139 276.4)
XYZxyz(3.7263, 2.1120, 14.9601)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F196E #686E19
analogous
#193E6E #1F196E #4A196E
triadic
#1F196E #6E1F19 #196E1F
tetradic
#1F196E #6E193E #686E19 #196E4A
square
#1F196E #6E193E #686E19 #196E4A
split-complementary
#1F196E #6E4A19 #3E6E19
monochromatic
#070619 #110E3C #1F196E #2D24A0 #3C31D0

Accessibility & contrast

On white

14.76
#1F196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F196E
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F196E#FFFFFF#000000##FFFFFF
##1F196E1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f196e;
/* rgb */ color: rgb(31, 25, 110);
/* oklch */ color: oklch(29.0% 0.139 276.4);
Tailwind
colors: {
  custom: {
    50: '#685799',
    500: '#1f196e',
    950: '#000000',
  },
}
SCSS
$custom: #1f196e;
$custom-light: #685799;
$custom-dark: #000000;
JSON
{
  "hex": "#1f196e",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 244.235,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29005,
    "c": 0.13934,
    "h": 276.4
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#1F196E
secondary
#9CA33F
accent
#E642DA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F196E

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

Preview Lab → · Contrast checker → · Palette generator →

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