#1F2497#1F2497

#1F2497 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.181 H 270.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#1F2497
RGBrgb(31, 36, 151)
HSLhsl(238, 66%, 36%)
HSVhsv(238, 79%, 59%)
CMYKcmyk(79.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(22.95, 39.46, -62.47)
CIE-LCHlch(22.95, 73.89, 302.28°)
OKLaboklab(35.25% 0.0021 -0.1809)
OKLCHoklch(35.25% 0.181 270.7)
XYZxyz(6.7800, 3.7867, 29.6457)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2497 #97921F
analogous
#1F6097 #1F2497 #561F97
triadic
#1F2497 #971F24 #24971F
tetradic
#1F2497 #971F60 #97921F #1F9756
square
#1F2497 #971F60 #97921F #1F9756
split-complementary
#1F2497 #97561F #60971F
monochromatic
#0A0C31 #151864 #1F2497 #2930CA #545ADC

Accessibility & contrast

On white

11.95
#1F2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2497
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2497#FFFFFF#000000##FFFFFF
##1F24971.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2497;
/* rgb */ color: rgb(31, 36, 151);
/* oklch */ color: oklch(35.2% 0.181 270.7);
Tailwind
colors: {
  custom: {
    50: '#7160b7',
    500: '#1f2497',
    950: '#000000',
  },
}
SCSS
$custom: #1f2497;
$custom-light: #7160b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2497",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 237.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35246,
    "c": 0.18091,
    "h": 270.7
  },
  "luminance": 0.03787
}

Semantic roles & 50–950 ramp

primary
#1F2497
secondary
#BFBB52
accent
#E23FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2497

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

Preview Lab → · Contrast checker → · Palette generator →

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