#1F2198#1F2198

#1F2198 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.185 H 270.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1F2198
RGBrgb(31, 33, 152)
HSLhsl(239, 66%, 36%)
HSVhsv(239, 80%, 60%)
CMYKcmyk(79.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(22.46, 41.52, -63.89)
CIE-LCHlch(22.46, 76.20, 303.02°)
OKLaboklab(34.93% 0.003 -0.185)
OKLCHoklch(34.93% 0.185 270.9)
XYZxyz(6.7745, 3.6453, 30.0462)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2198 #98961F
analogous
#1F5D98 #1F2198 #591F98
triadic
#1F2198 #981F21 #21981F
tetradic
#1F2198 #981F5D #98961F #1F9859
square
#1F2198 #981F5D #98961F #1F9859
split-complementary
#1F2198 #98591F #5D981F
monochromatic
#0A0B32 #151665 #1F2198 #292CCB #5557DC

Accessibility & contrast

On white

12.14
#1F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2198
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2198#FFFFFF#000000##FFFFFF
##1F21981.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2198;
/* rgb */ color: rgb(31, 33, 152);
/* oklch */ color: oklch(34.9% 0.185 270.9);
Tailwind
colors: {
  custom: {
    50: '#725eb8',
    500: '#1f2198',
    950: '#000000',
  },
}
SCSS
$custom: #1f2198;
$custom-light: #725eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2198",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 239.008,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.18504,
    "h": 270.9
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#1F2198
secondary
#C0BE53
accent
#E63FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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