#1F118C#1F118C

#1F118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.183 H 273.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#1F118C
RGBrgb(31, 17, 140)
HSLhsl(247, 78%, 31%)
HSVhsv(247, 88%, 55%)
CMYKcmyk(77.9%, 87.9%, 0%, 45.1%)
CIE-LABlab(18.30, 45.53, -63.36)
CIE-LCHlch(18.30, 78.02, 305.70°)
OKLaboklab(31.62% 0.0106 -0.1832)
OKLCHoklch(31.62% 0.183 273.3)
XYZxyz(5.4976, 2.5851, 25.0151)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F118C #7E8C11
analogous
#11408C #1F118C #5C118C
triadic
#1F118C #8C1F11 #118C1F
tetradic
#1F118C #8C1140 #7E8C11 #118C5C
square
#1F118C #8C1140 #7E8C11 #118C5C
split-complementary
#1F118C #8C5C11 #408C11
monochromatic
#07041F #130A55 #1F118C #2B18C3 #4631E6

Accessibility & contrast

On white

13.84
#1F118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F118C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F118C#FFFFFF#000000##FFFFFF
##1F118C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f118c;
/* rgb */ color: rgb(31, 17, 140);
/* oklch */ color: oklch(31.6% 0.183 273.3);
Tailwind
colors: {
  custom: {
    50: '#7055af',
    500: '#1f118c',
    950: '#000000',
  },
}
SCSS
$custom: #1f118c;
$custom-light: #7055af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f118c",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 246.829,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31616,
    "c": 0.18348,
    "h": 273.3
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#1F118C
secondary
#B1C138
accent
#F533DF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F118C

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

Preview Lab → · Contrast checker → · Palette generator →

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