#1F2698#1F2698

#1F2698 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.180 H 270.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2698
RGBrgb(31, 38, 152)
HSLhsl(237, 66%, 36%)
HSVhsv(237, 80%, 60%)
CMYKcmyk(79.6%, 75%, 0%, 40.4%)
CIE-LABlab(23.48, 38.63, -62.20)
CIE-LCHlch(23.48, 73.22, 301.84°)
OKLaboklab(35.66% 0.0011 -0.1801)
OKLCHoklch(35.66% 0.18 270.4)
XYZxyz(6.9238, 3.9438, 30.0960)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2698 #98911F
analogous
#1F6298 #1F2698 #541F98
triadic
#1F2698 #981F26 #26981F
tetradic
#1F2698 #981F62 #98911F #1F9854
square
#1F2698 #981F62 #98911F #1F9854
split-complementary
#1F2698 #98541F #62981F
monochromatic
#0A0D32 #151965 #1F2698 #2933CB #555DDC

Accessibility & contrast

On white

11.74
#1F2698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2698
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2698#FFFFFF#000000##FFFFFF
##1F26981.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2698;
/* rgb */ color: rgb(31, 38, 152);
/* oklch */ color: oklch(35.7% 0.180 270.4);
Tailwind
colors: {
  custom: {
    50: '#7161b8',
    500: '#1f2698',
    950: '#000000',
  },
}
SCSS
$custom: #1f2698;
$custom-light: #7161b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2698",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 236.529,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35657,
    "c": 0.18015,
    "h": 270.4
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2698

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

Preview Lab → · Contrast checker → · Palette generator →

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