#1F145C#1F145C

#1F145C is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.2% C 0.121 H 281.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#1F145C
RGBrgb(31, 20, 92)
HSLhsl(249, 64%, 22%)
HSVhsv(249, 78%, 36%)
CMYKcmyk(66.3%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.01, 28.39, -41.05)
CIE-LCHlch(13.01, 49.91, 304.66°)
OKLaboklab(26.25% 0.0232 -0.1184)
OKLCHoklch(26.25% 0.121 281.1)
XYZxyz(2.7464, 1.5641, 10.2803)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F145C #515C14
analogous
#142D5C #1F145C #43145C
triadic
#1F145C #5C1F14 #145C1F
tetradic
#1F145C #5C142D #515C14 #145C43
square
#1F145C #5C142D #515C14 #145C43
split-complementary
#1F145C #5C4314 #2D5C14
monochromatic
#080519 #0E092A #1F145C #301F8E #412AC1

Accessibility & contrast

On white

16.00
#1F145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F145C
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F145C#FFFFFF#000000##FFFFFF
##1F145C1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f145c;
/* rgb */ color: rgb(31, 20, 92);
/* oklch */ color: oklch(26.2% 0.121 281.1);
Tailwind
colors: {
  custom: {
    50: '#64538b',
    500: '#1f145c',
    950: '#000000',
  },
}
SCSS
$custom: #1f145c;
$custom-light: #64538b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f145c",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 249.167,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26247,
    "c": 0.12065,
    "h": 281.1
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#1F145C
secondary
#869438
accent
#E741CE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F145C

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

Preview Lab → · Contrast checker → · Palette generator →

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