#1F137C#1F137C

#1F137C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.163 H 275.2°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#1F137C
RGBrgb(31, 19, 124)
HSLhsl(247, 73%, 28%)
HSVhsv(247, 85%, 49%)
CMYKcmyk(75%, 84.7%, 0%, 51.4%)
CIE-LABlab(16.56, 39.65, -56.12)
CIE-LCHlch(16.56, 68.72, 305.24°)
OKLaboklab(29.84% 0.0148 -0.1623)
OKLCHoklch(29.84% 0.163 275.2)
XYZxyz(4.4348, 2.2119, 19.2581)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F137C #707C13
analogous
#133B7C #1F137C #53137C
triadic
#1F137C #7C1F13 #137C1F
tetradic
#1F137C #7C133B #707C13 #137C53
square
#1F137C #7C133B #707C13 #137C53
split-complementary
#1F137C #7C5313 #3B7C13
monochromatic
#07041B #120B47 #1F137C #2C1BB1 #3F2BDF

Accessibility & contrast

On white

14.56
#1F137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F137C
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F137C#FFFFFF#000000##FFFFFF
##1F137C1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f137c;
/* rgb */ color: rgb(31, 19, 124);
/* oklch */ color: oklch(29.8% 0.163 275.2);
Tailwind
colors: {
  custom: {
    50: '#6c54a3',
    500: '#1f137c',
    950: '#000000',
  },
}
SCSS
$custom: #1f137c;
$custom-light: #6c54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f137c",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 246.857,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29837,
    "c": 0.16293,
    "h": 275.2
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#1F137C
secondary
#A4B239
accent
#F038DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F137C

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

Preview Lab → · Contrast checker → · Palette generator →

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