#1F118E#1F118E

#1F118E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.9% C 0.186 H 273.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#1F118E
RGBrgb(31, 17, 142)
HSLhsl(247, 79%, 31%)
HSVhsv(247, 88%, 56%)
CMYKcmyk(78.2%, 88%, 0%, 44.3%)
CIE-LABlab(18.56, 46.13, -64.17)
CIE-LCHlch(18.56, 79.03, 305.71°)
OKLaboklab(31.87% 0.01 -0.1855)
OKLCHoklch(31.87% 0.186 273.1)
XYZxyz(5.6464, 2.6446, 25.7988)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F118E #808E11
analogous
#11418E #1F118E #5D118E
triadic
#1F118E #8E1F11 #118E1F
tetradic
#1F118E #8E1141 #808E11 #118E5D
square
#1F118E #8E1141 #808E11 #118E5D
split-complementary
#1F118E #8E5D11 #418E11
monochromatic
#070421 #130A57 #1F118E #2B18C5 #4733E7

Accessibility & contrast

On white

13.73
#1F118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F118E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F118E#FFFFFF#000000##FFFFFF
##1F118E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f118e;
/* rgb */ color: rgb(31, 17, 142);
/* oklch */ color: oklch(31.9% 0.186 273.1);
Tailwind
colors: {
  custom: {
    50: '#7155b0',
    500: '#1f118e',
    950: '#000000',
  },
}
SCSS
$custom: #1f118e;
$custom-light: #7155b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f118e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 246.72,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31869,
    "c": 0.18581,
    "h": 273.1
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#1F118E
secondary
#B3C238
accent
#F533DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F118E

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

Preview Lab → · Contrast checker → · Palette generator →

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