#1F117C#1F117C

#1F117C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.165 H 275.4°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#1F117C
RGBrgb(31, 17, 124)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 86%, 49%)
CMYKcmyk(75%, 86.3%, 0%, 51.4%)
CIE-LABlab(16.24, 40.60, -56.66)
CIE-LCHlch(16.24, 69.70, 305.62°)
OKLaboklab(29.62% 0.0155 -0.1638)
OKLCHoklch(29.62% 0.165 275.4)
XYZxyz(4.4024, 2.1470, 19.2473)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F117C #6E7C11
analogous
#11397C #1F117C #54117C
triadic
#1F117C #7C1F11 #117C1F
tetradic
#1F117C #7C1139 #6E7C11 #117C54
square
#1F117C #7C1139 #6E7C11 #117C54
split-complementary
#1F117C #7C5411 #397C11
monochromatic
#07041B #120A46 #1F117C #2C18B2 #3F26E1

Accessibility & contrast

On white

14.69
#1F117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F117C
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F117C#FFFFFF#000000##FFFFFF
##1F117C1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f117c;
/* rgb */ color: rgb(31, 17, 124);
/* oklch */ color: oklch(29.6% 0.165 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c53a3',
    500: '#1f117c',
    950: '#000000',
  },
}
SCSS
$custom: #1f117c;
$custom-light: #6c53a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f117c",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 247.85,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29615,
    "c": 0.1645,
    "h": 275.4
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#1F117C
secondary
#A2B237
accent
#F235DA
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F117C

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

Preview Lab → · Contrast checker → · Palette generator →

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