#1F145B#1F145B

#1F145B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 26.1% C 0.119 H 281.3°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#1F145B
RGBrgb(31, 20, 91)
HSLhsl(249, 64%, 22%)
HSVhsv(249, 78%, 36%)
CMYKcmyk(65.9%, 78%, 0%, 64.3%)
CIE-LABlab(12.90, 28.04, -40.56)
CIE-LCHlch(12.90, 49.31, 304.66°)
OKLaboklab(26.14% 0.0234 -0.1169)
OKLCHoklch(26.14% 0.119 281.3)
XYZxyz(2.7030, 1.5468, 10.0516)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F145B #505B14
analogous
#142D5B #1F145B #43145B
triadic
#1F145B #5B1F14 #145B1F
tetradic
#1F145B #5B142D #505B14 #145B43
square
#1F145B #5B142D #505B14 #145B43
split-complementary
#1F145B #5B4314 #2D5B14
monochromatic
#090619 #0E0929 #1F145B #301F8D #412ABF

Accessibility & contrast

On white

16.04
#1F145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F145B
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F145B#FFFFFF#000000##FFFFFF
##1F145B1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #1f145b;
/* rgb */ color: rgb(31, 20, 91);
/* oklch */ color: oklch(26.1% 0.119 281.3);
Tailwind
colors: {
  custom: {
    50: '#64538a',
    500: '#1f145b',
    950: '#000000',
  },
}
SCSS
$custom: #1f145b;
$custom-light: #64538a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f145b",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 249.296,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26138,
    "c": 0.11927,
    "h": 281.3
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#1F145B
secondary
#859338
accent
#E741CD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F145B

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

Preview Lab → · Contrast checker → · Palette generator →

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