#1F198D#1F198D

#1F198D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.179 H 272.6°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#1F198D
RGBrgb(31, 25, 141)
HSLhsl(243, 70%, 33%)
HSVhsv(243, 82%, 55%)
CMYKcmyk(78%, 82.3%, 0%, 44.7%)
CIE-LABlab(19.68, 42.15, -61.70)
CIE-LCHlch(19.68, 74.72, 304.34°)
OKLaboklab(32.6% 0.0081 -0.1785)
OKLCHoklch(32.6% 0.179 272.6)
XYZxyz(5.7188, 2.9090, 25.4542)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F198D #878D19
analogous
#194D8D #1F198D #59198D
triadic
#1F198D #8D1F19 #198D1F
tetradic
#1F198D #8D194D #878D19 #198D59
square
#1F198D #8D194D #878D19 #198D59
split-complementary
#1F198D #8D5919 #4D8D19
monochromatic
#080725 #141059 #1F198D #2A22C1 #4B43DE

Accessibility & contrast

On white

13.27
#1F198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F198D
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F198D#FFFFFF#000000##FFFFFF
##1F198D1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f198d;
/* rgb */ color: rgb(31, 25, 141);
/* oklch */ color: oklch(32.6% 0.179 272.6);
Tailwind
colors: {
  custom: {
    50: '#7059b0',
    500: '#1f198d',
    950: '#000000',
  },
}
SCSS
$custom: #1f198d;
$custom-light: #7059b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f198d",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 243.103,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32602,
    "c": 0.1787,
    "h": 272.6
  },
  "luminance": 0.0291
}

Semantic roles & 50–950 ramp

primary
#1F198D
secondary
#B8BF43
accent
#ED3BE3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F198D

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

Preview Lab → · Contrast checker → · Palette generator →

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