#1F2898#1F2898

#1F2898 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.178 H 270.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F2898
RGBrgb(31, 40, 152)
HSLhsl(236, 66%, 36%)
HSVhsv(236, 80%, 60%)
CMYKcmyk(79.6%, 73.7%, 0%, 40.4%)
CIE-LABlab(23.92, 37.42, -61.49)
CIE-LCHlch(23.92, 71.98, 301.32°)
OKLaboklab(35.97% 0.0003 -0.1781)
OKLCHoklch(35.97% 0.178 270.1)
XYZxyz(6.9894, 4.0751, 30.1179)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2898 #988F1F
analogous
#1F6498 #1F2898 #521F98
triadic
#1F2898 #981F28 #28981F
tetradic
#1F2898 #981F64 #988F1F #1F9852
square
#1F2898 #981F64 #988F1F #1F9852
split-complementary
#1F2898 #98521F #64981F
monochromatic
#0A0D32 #151B65 #1F2898 #2935CB #555FDC

Accessibility & contrast

On white

11.57
#1F2898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2898
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2898#FFFFFF#000000##FFFFFF
##1F28981.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2898;
/* rgb */ color: rgb(31, 40, 152);
/* oklch */ color: oklch(36.0% 0.178 270.1);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#1f2898',
    950: '#000000',
  },
}
SCSS
$custom: #1f2898;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2898",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 235.537,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.17808,
    "h": 270.1
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#1F2898
secondary
#C0B853
accent
#DC3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2898

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

Preview Lab → · Contrast checker → · Palette generator →

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