#1F196D#1F196D

#1F196D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.138 H 276.5°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#1F196D
RGBrgb(31, 25, 109)
HSLhsl(244, 63%, 26%)
HSVhsv(244, 77%, 43%)
CMYKcmyk(71.6%, 77.1%, 0%, 57.3%)
CIE-LABlab(15.95, 31.29, -47.45)
CIE-LCHlch(15.95, 56.84, 303.41°)
OKLaboklab(28.89% 0.0157 -0.1371)
OKLCHoklch(28.89% 0.138 276.5)
XYZxyz(3.6721, 2.0904, 14.6750)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F196D #676D19
analogous
#193D6D #1F196D #49196D
triadic
#1F196D #6D1F19 #196D1F
tetradic
#1F196D #6D193D #676D19 #196D49
square
#1F196D #6D193D #676D19 #196D49
split-complementary
#1F196D #6D4919 #3D6D19
monochromatic
#070619 #110E3B #1F196D #2D249F #3C31D0

Accessibility & contrast

On white

14.81
#1F196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F196D
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F196D#FFFFFF#000000##FFFFFF
##1F196D1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f196d;
/* rgb */ color: rgb(31, 25, 109);
/* oklch */ color: oklch(28.9% 0.138 276.5);
Tailwind
colors: {
  custom: {
    50: '#675798',
    500: '#1f196d',
    950: '#000000',
  },
}
SCSS
$custom: #1f196d;
$custom-light: #675798;
$custom-dark: #000000;
JSON
{
  "hex": "#1f196d",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 244.286,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28894,
    "c": 0.13799,
    "h": 276.5
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F196D

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

Preview Lab → · Contrast checker → · Palette generator →

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