#1F2697#1F2697

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

Color values

HEX#1F2697
RGBrgb(31, 38, 151)
HSLhsl(237, 66%, 36%)
HSVhsv(237, 79%, 59%)
CMYKcmyk(79.5%, 74.8%, 0%, 40.8%)
CIE-LABlab(23.38, 38.28, -61.77)
CIE-LCHlch(23.38, 72.67, 301.78°)
OKLaboklab(35.55% 0.0013 -0.1789)
OKLCHoklch(35.55% 0.179 270.4)
XYZxyz(6.8422, 3.9111, 29.6665)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2697 #97901F
analogous
#1F6297 #1F2697 #541F97
triadic
#1F2697 #971F26 #26971F
tetradic
#1F2697 #971F62 #97901F #1F9754
square
#1F2697 #971F62 #97901F #1F9754
split-complementary
#1F2697 #97541F #62971F
monochromatic
#0A0C31 #151964 #1F2697 #2933CA #545CDC

Accessibility & contrast

On white

11.78
#1F2697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2697
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2697#FFFFFF#000000##FFFFFF
##1F26971.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2697;
/* rgb */ color: rgb(31, 38, 151);
/* oklch */ color: oklch(35.5% 0.179 270.4);
Tailwind
colors: {
  custom: {
    50: '#7161b7',
    500: '#1f2697',
    950: '#000000',
  },
}
SCSS
$custom: #1f2697;
$custom-light: #7161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2697",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 236.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35547,
    "c": 0.17889,
    "h": 270.4
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2697

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

Preview Lab → · Contrast checker → · Palette generator →

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