#1F165E#1F165E

#1F165E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.121 H 280.1°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#1F165E
RGBrgb(31, 22, 94)
HSLhsl(248, 62%, 23%)
HSVhsv(248, 77%, 37%)
CMYKcmyk(67%, 76.6%, 0%, 63.1%)
CIE-LABlab(13.67, 27.85, -41.31)
CIE-LCHlch(13.67, 49.82, 303.98°)
OKLaboklab(26.78% 0.0211 -0.1192)
OKLCHoklch(26.78% 0.121 280.1)
XYZxyz(2.8717, 1.6731, 10.7591)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F165E #555E16
analogous
#16315E #1F165E #43165E
triadic
#1F165E #5E1F16 #165E1F
tetradic
#1F165E #5E1631 #555E16 #165E43
square
#1F165E #5E1631 #555E16 #165E43
split-complementary
#1F165E #5E4316 #315E16
monochromatic
#080619 #0F0A2C #1F165E #2F2290 #402DC1

Accessibility & contrast

On white

15.74
#1F165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F165E
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F165E#FFFFFF#000000##FFFFFF
##1F165E1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f165e;
/* rgb */ color: rgb(31, 22, 94);
/* oklch */ color: oklch(26.8% 0.121 280.1);
Tailwind
colors: {
  custom: {
    50: '#64548c',
    500: '#1f165e',
    950: '#000000',
  },
}
SCSS
$custom: #1f165e;
$custom-light: #64548c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f165e",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 247.5,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2678,
    "c": 0.12102,
    "h": 280.1
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#1F165E
secondary
#8A953B
accent
#E543D1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F165E

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

Preview Lab → · Contrast checker → · Palette generator →

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