#1F145D#1F145D

#1F145D is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.122 H 280.8°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#1F145D
RGBrgb(31, 20, 93)
HSLhsl(249, 65%, 22%)
HSVhsv(249, 78%, 36%)
CMYKcmyk(66.7%, 78.5%, 0%, 63.5%)
CIE-LABlab(13.12, 28.74, -41.55)
CIE-LCHlch(13.12, 50.52, 304.67°)
OKLaboklab(26.36% 0.0229 -0.1198)
OKLCHoklch(26.36% 0.122 280.8)
XYZxyz(2.7904, 1.5817, 10.5121)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F145D #525D14
analogous
#142E5D #1F145D #44145D
triadic
#1F145D #5D1F14 #145D1F
tetradic
#1F145D #5D142E #525D14 #145D44
square
#1F145D #5D142E #525D14 #145D44
split-complementary
#1F145D #5D4414 #2E5D14
monochromatic
#080519 #0E092B #1F145D #301F8F #412AC2

Accessibility & contrast

On white

15.95
#1F145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F145D
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F145D#FFFFFF#000000##FFFFFF
##1F145D1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f145d;
/* rgb */ color: rgb(31, 20, 93);
/* oklch */ color: oklch(26.4% 0.122 280.8);
Tailwind
colors: {
  custom: {
    50: '#64538c',
    500: '#1f145d',
    950: '#000000',
  },
}
SCSS
$custom: #1f145d;
$custom-light: #64538c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f145d",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 249.041,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26357,
    "c": 0.12201,
    "h": 280.8
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#1F145D
secondary
#879538
accent
#E840CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F145D

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

Preview Lab → · Contrast checker → · Palette generator →

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