#1F2397#1F2397

#1F2397 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 270.8°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2397
RGBrgb(31, 35, 151)
HSLhsl(238, 66%, 36%)
HSVhsv(238, 79%, 59%)
CMYKcmyk(79.5%, 76.8%, 0%, 40.8%)
CIE-LABlab(22.75, 40.04, -62.81)
CIE-LCHlch(22.75, 74.49, 302.52°)
OKLaboklab(35.1% 0.0025 -0.1819)
OKLCHoklch(35.1% 0.182 270.8)
XYZxyz(6.7501, 3.7270, 29.6358)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2397 #97931F
analogous
#1F5F97 #1F2397 #571F97
triadic
#1F2397 #971F23 #23971F
tetradic
#1F2397 #971F5F #97931F #1F9757
square
#1F2397 #971F5F #97931F #1F9757
split-complementary
#1F2397 #97571F #5F971F
monochromatic
#0A0B31 #151764 #1F2397 #292FCA #5459DC

Accessibility & contrast

On white

12.03
#1F2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2397
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2397#FFFFFF#000000##FFFFFF
##1F23971.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2397;
/* rgb */ color: rgb(31, 35, 151);
/* oklch */ color: oklch(35.1% 0.182 270.8);
Tailwind
colors: {
  custom: {
    50: '#715fb7',
    500: '#1f2397',
    950: '#000000',
  },
}
SCSS
$custom: #1f2397;
$custom-light: #715fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2397",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 238,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35101,
    "c": 0.1819,
    "h": 270.8
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#1F2397
secondary
#BFBC52
accent
#E33FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2397

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

Preview Lab → · Contrast checker → · Palette generator →

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