#1F145E#1F145E

#1F145E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.5% C 0.123 H 280.6°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#1F145E
RGBrgb(31, 20, 94)
HSLhsl(249, 65%, 22%)
HSVhsv(249, 79%, 37%)
CMYKcmyk(67%, 78.7%, 0%, 63.1%)
CIE-LABlab(13.23, 29.08, -42.04)
CIE-LCHlch(13.23, 51.11, 304.68°)
OKLaboklab(26.47% 0.0227 -0.1213)
OKLCHoklch(26.47% 0.123 280.6)
XYZxyz(2.8350, 1.5996, 10.7469)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F145E #535E14
analogous
#142E5E #1F145E #44145E
triadic
#1F145E #5E1F14 #145E1F
tetradic
#1F145E #5E142E #535E14 #145E44
square
#1F145E #5E142E #535E14 #145E44
split-complementary
#1F145E #5E4414 #2E5E14
monochromatic
#080519 #0E092C #1F145E #301F90 #4029C3

Accessibility & contrast

On white

15.91
#1F145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F145E
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F145E#FFFFFF#000000##FFFFFF
##1F145E1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f145e;
/* rgb */ color: rgb(31, 20, 94);
/* oklch */ color: oklch(26.5% 0.123 280.6);
Tailwind
colors: {
  custom: {
    50: '#64538c',
    500: '#1f145e',
    950: '#000000',
  },
}
SCSS
$custom: #1f145e;
$custom-light: #64538c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f145e",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 248.919,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26467,
    "c": 0.12337,
    "h": 280.6
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#1F145E
secondary
#889638
accent
#E840CF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F145E

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

Preview Lab → · Contrast checker → · Palette generator →

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