#1F2598#1F2598

#1F2598 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.181 H 270.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2598
RGBrgb(31, 37, 152)
HSLhsl(237, 66%, 36%)
HSVhsv(237, 80%, 60%)
CMYKcmyk(79.6%, 75.7%, 0%, 40.4%)
CIE-LABlab(23.27, 39.22, -62.55)
CIE-LCHlch(23.27, 73.83, 302.09°)
OKLaboklab(35.51% 0.0015 -0.1812)
OKLCHoklch(35.51% 0.181 270.5)
XYZxyz(6.8922, 3.8807, 30.0855)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2598 #98921F
analogous
#1F6198 #1F2598 #551F98
triadic
#1F2598 #981F25 #25981F
tetradic
#1F2598 #981F61 #98921F #1F9855
square
#1F2598 #981F61 #98921F #1F9855
split-complementary
#1F2598 #98551F #61981F
monochromatic
#0A0C32 #151965 #1F2598 #2931CB #555CDC

Accessibility & contrast

On white

11.82
#1F2598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2598
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2598#FFFFFF#000000##FFFFFF
##1F25981.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2598;
/* rgb */ color: rgb(31, 37, 152);
/* oklch */ color: oklch(35.5% 0.181 270.5);
Tailwind
colors: {
  custom: {
    50: '#7161b8',
    500: '#1f2598',
    950: '#000000',
  },
}
SCSS
$custom: #1f2598;
$custom-light: #7161b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2598",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 237.025,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35506,
    "c": 0.18117,
    "h": 270.5
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#1F2598
secondary
#C0BA53
accent
#E13FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2598

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

Preview Lab → · Contrast checker → · Palette generator →

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