#1F157C#1F157C

#1F157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.161 H 275.0°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#1F157C
RGBrgb(31, 21, 124)
HSLhsl(246, 71%, 28%)
HSVhsv(246, 83%, 49%)
CMYKcmyk(75%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.90, 38.65, -55.56)
CIE-LCHlch(16.90, 67.68, 304.83°)
OKLaboklab(30.07% 0.014 -0.1606)
OKLCHoklch(30.07% 0.161 275)
XYZxyz(4.4701, 2.2824, 19.2698)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F157C #727C15
analogous
#153E7C #1F157C #52157C
triadic
#1F157C #7C1F15 #157C1F
tetradic
#1F157C #7C153E #727C15 #157C52
square
#1F157C #7C153E #727C15 #157C52
split-complementary
#1F157C #7C5215 #3E7C15
monochromatic
#07041A #120C48 #1F157C #2C1EB0 #4030DC

Accessibility & contrast

On white

14.42
#1F157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F157C
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F157C#FFFFFF#000000##FFFFFF
##1F157C1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f157c;
/* rgb */ color: rgb(31, 21, 124);
/* oklch */ color: oklch(30.1% 0.161 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c56a3',
    500: '#1f157c',
    950: '#000000',
  },
}
SCSS
$custom: #1f157c;
$custom-light: #6c56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f157c",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 245.825,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30074,
    "c": 0.16126,
    "h": 275
  },
  "luminance": 0.02283
}

Semantic roles & 50–950 ramp

primary
#1F157C
secondary
#A6B13C
accent
#EE3ADC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F157C

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

Preview Lab → · Contrast checker → · Palette generator →

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