#1F145F#1F145F

#1F145F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.125 H 280.4°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#1F145F
RGBrgb(31, 20, 95)
HSLhsl(249, 65%, 23%)
HSVhsv(249, 79%, 37%)
CMYKcmyk(67.4%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.34, 29.43, -42.52)
CIE-LCHlch(13.34, 51.71, 304.69°)
OKLaboklab(26.58% 0.0224 -0.1227)
OKLCHoklch(26.58% 0.125 280.4)
XYZxyz(2.8801, 1.6176, 10.9847)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F145F #545F14
analogous
#142F5F #1F145F #44145F
triadic
#1F145F #5F1F14 #145F1F
tetradic
#1F145F #5F142F #545F14 #145F44
square
#1F145F #5F142F #545F14 #145F44
split-complementary
#1F145F #5F4414 #2F5F14
monochromatic
#080519 #0F092C #1F145F #2F1F92 #4029C4

Accessibility & contrast

On white

15.87
#1F145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F145F
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F145F#FFFFFF#000000##FFFFFF
##1F145F1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f145f;
/* rgb */ color: rgb(31, 20, 95);
/* oklch */ color: oklch(26.6% 0.125 280.4);
Tailwind
colors: {
  custom: {
    50: '#64538d',
    500: '#1f145f',
    950: '#000000',
  },
}
SCSS
$custom: #1f145f;
$custom-light: #64538d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f145f",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 248.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26577,
    "c": 0.12473,
    "h": 280.4
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F145F

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

Preview Lab → · Contrast checker → · Palette generator →

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