#1F148E#1F148E

#1F148E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.184 H 272.9°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#1F148E
RGBrgb(31, 20, 142)
HSLhsl(245, 75%, 32%)
HSVhsv(245, 86%, 56%)
CMYKcmyk(78.2%, 85.9%, 0%, 44.3%)
CIE-LABlab(18.99, 44.86, -63.46)
CIE-LCHlch(18.99, 77.71, 305.25°)
OKLaboklab(32.16% 0.0093 -0.1835)
OKLCHoklch(32.16% 0.184 272.9)
XYZxyz(5.6961, 2.7440, 25.8154)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F148E #838E14
analogous
#14468E #1F148E #5C148E
triadic
#1F148E #8E1F14 #148E1F
tetradic
#1F148E #8E1446 #838E14 #148E5C
square
#1F148E #8E1446 #838E14 #148E5C
split-complementary
#1F148E #8E5C14 #468E14
monochromatic
#080523 #130C58 #1F148E #2B1CC4 #4939E3

Accessibility & contrast

On white

13.56
#1F148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F148E
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F148E#FFFFFF#000000##FFFFFF
##1F148E1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f148e;
/* rgb */ color: rgb(31, 20, 142);
/* oklch */ color: oklch(32.2% 0.184 272.9);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1f148e',
    950: '#000000',
  },
}
SCSS
$custom: #1f148e;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f148e",
  "rgb": {
    "r": 31,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 245.41,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32162,
    "c": 0.18377,
    "h": 272.9
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F148E

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

Preview Lab → · Contrast checker → · Palette generator →

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