#1F148F#1F148F

#1F148F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.185 H 272.8°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#1F148F
RGBrgb(31, 20, 143)
HSLhsl(245, 75%, 32%)
HSVhsv(245, 86%, 56%)
CMYKcmyk(78.3%, 86%, 0%, 43.9%)
CIE-LABlab(19.12, 45.16, -63.87)
CIE-LCHlch(19.12, 78.23, 305.26°)
OKLaboklab(32.29% 0.009 -0.1847)
OKLCHoklch(32.29% 0.185 272.8)
XYZxyz(5.7715, 2.7742, 26.2126)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F148F #848F14
analogous
#14478F #1F148F #5D148F
triadic
#1F148F #8F1F14 #148F1F
tetradic
#1F148F #8F1447 #848F14 #148F5D
square
#1F148F #8F1447 #848F14 #148F5D
split-complementary
#1F148F #8F5D14 #478F14
monochromatic
#080524 #130C59 #1F148F #2B1CC5 #493AE3

Accessibility & contrast

On white

13.50
#1F148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F148F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F148F#FFFFFF#000000##FFFFFF
##1F148F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f148f;
/* rgb */ color: rgb(31, 20, 143);
/* oklch */ color: oklch(32.3% 0.185 272.8);
Tailwind
colors: {
  custom: {
    50: '#7157b1',
    500: '#1f148f',
    950: '#000000',
  },
}
SCSS
$custom: #1f148f;
$custom-light: #7157b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f148f",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 245.366,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32287,
    "c": 0.18495,
    "h": 272.8
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#1F148F
secondary
#B7C33C
accent
#F236E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F148F

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

Preview Lab → · Contrast checker → · Palette generator →

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