#1F2998#1F2998

#1F2998 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.177 H 269.9°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#1F2998
RGBrgb(31, 41, 152)
HSLhsl(235, 66%, 36%)
HSVhsv(235, 80%, 60%)
CMYKcmyk(79.6%, 73%, 0%, 40.4%)
CIE-LABlab(24.14, 36.80, -61.12)
CIE-LCHlch(24.14, 71.35, 301.05°)
OKLaboklab(36.13% -0.0002 -0.177)
OKLCHoklch(36.13% 0.177 269.9)
XYZxyz(7.0236, 4.1434, 30.1293)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2998 #988E1F
analogous
#1F6598 #1F2998 #511F98
triadic
#1F2998 #981F29 #29981F
tetradic
#1F2998 #981F65 #988E1F #1F9851
square
#1F2998 #981F65 #988E1F #1F9851
split-complementary
#1F2998 #98511F #65981F
monochromatic
#0A0E32 #151B65 #1F2998 #2937CB #5560DC

Accessibility & contrast

On white

11.48
#1F2998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F2998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2998
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2998#FFFFFF#000000##FFFFFF
##1F29981.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2998;
/* rgb */ color: rgb(31, 41, 152);
/* oklch */ color: oklch(36.1% 0.177 269.9);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#1f2998',
    950: '#000000',
  },
}
SCSS
$custom: #1f2998;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2998",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 235.041,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36126,
    "c": 0.17702,
    "h": 269.9
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#1F2998
secondary
#C0B753
accent
#DB3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2998

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

Preview Lab → · Contrast checker → · Palette generator →

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