#1F2396#1F2396

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

Color values

HEX#1F2396
RGBrgb(31, 35, 150)
HSLhsl(238, 66%, 35%)
HSVhsv(238, 79%, 59%)
CMYKcmyk(79.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(22.64, 39.70, -62.38)
CIE-LCHlch(22.64, 73.94, 302.47°)
OKLaboklab(34.99% 0.0026 -0.1806)
OKLCHoklch(34.99% 0.181 270.8)
XYZxyz(6.6693, 3.6946, 29.2099)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2396 #96921F
analogous
#1F5E96 #1F2396 #561F96
triadic
#1F2396 #961F23 #23961F
tetradic
#1F2396 #961F5E #96921F #1F9656
square
#1F2396 #961F5E #96921F #1F9656
split-complementary
#1F2396 #96561F #5E961F
monochromatic
#0A0B31 #151763 #1F2396 #292FC9 #5458DC

Accessibility & contrast

On white

12.08
#1F2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2396
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2396#FFFFFF#000000##FFFFFF
##1F23961.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2396;
/* rgb */ color: rgb(31, 35, 150);
/* oklch */ color: oklch(35.0% 0.181 270.8);
Tailwind
colors: {
  custom: {
    50: '#715fb6',
    500: '#1f2396',
    950: '#000000',
  },
}
SCSS
$custom: #1f2396;
$custom-light: #715fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2396",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 237.983,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34988,
    "c": 0.18065,
    "h": 270.8
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2396

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

Preview Lab → · Contrast checker → · Palette generator →

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