#1F139A#1F139A

#1F139A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.6% C 0.198 H 271.8°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#1F139A
RGBrgb(31, 19, 154)
HSLhsl(245, 78%, 34%)
HSVhsv(245, 88%, 60%)
CMYKcmyk(79.9%, 87.7%, 0%, 39.6%)
CIE-LABlab(20.40, 48.92, -68.55)
CIE-LCHlch(20.40, 84.22, 305.51°)
OKLaboklab(33.57% 0.0061 -0.1982)
OKLCHoklch(33.57% 0.198 271.8)
XYZxyz(6.6287, 3.0894, 30.8125)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F139A #8E9A13
analogous
#134B9A #1F139A #63139A
triadic
#1F139A #9A1F13 #139A1F
tetradic
#1F139A #9A134B #8E9A13 #139A63
square
#1F139A #9A134B #8E9A13 #139A63
split-complementary
#1F139A #9A6313 #4B9A13
monochromatic
#09062D #140C64 #1F139A #2A1AD0 #4F40E7

Accessibility & contrast

On white

12.98
#1F139A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F139A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F139A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F139A#FFFFFF#000000##FFFFFF
##1F139A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00379E
Deuteranopia (green-blind)
#002A98
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f139a;
/* rgb */ color: rgb(31, 19, 154);
/* oklch */ color: oklch(33.6% 0.198 271.8);
Tailwind
colors: {
  custom: {
    50: '#7357b9',
    500: '#1f139a',
    950: '#000000',
  },
}
SCSS
$custom: #1f139a;
$custom-light: #7357b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f139a",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 154
  },
  "hsl": {
    "h": 245.333,
    "s": 78.035,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3357,
    "c": 0.19834,
    "h": 271.8
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#1F139A
secondary
#BBC741
accent
#F533E3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0312
muted
#7C7881

Preview Lab

Preview with #1F139A

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

Preview Lab → · Contrast checker → · Palette generator →

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