#1F137D#1F137D

#1F137D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.164 H 275.1°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#1F137D
RGBrgb(31, 19, 125)
HSLhsl(247, 74%, 28%)
HSVhsv(247, 85%, 49%)
CMYKcmyk(75.2%, 84.8%, 0%, 51%)
CIE-LABlab(16.69, 39.97, -56.56)
CIE-LCHlch(16.69, 69.26, 305.25°)
OKLaboklab(29.96% 0.0145 -0.1635)
OKLCHoklch(29.96% 0.164 275.1)
XYZxyz(4.4984, 2.2373, 19.5928)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F137D #717D13
analogous
#133C7D #1F137D #54137D
triadic
#1F137D #7D1F13 #137D1F
tetradic
#1F137D #7D133C #717D13 #137D54
square
#1F137D #7D133C #717D13 #137D54
split-complementary
#1F137D #7D5413 #3C7D13
monochromatic
#07041B #120B48 #1F137D #2C1BB2 #402CDF

Accessibility & contrast

On white

14.51
#1F137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F137D
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F137D#FFFFFF#000000##FFFFFF
##1F137D1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f137d;
/* rgb */ color: rgb(31, 19, 125);
/* oklch */ color: oklch(30.0% 0.164 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c55a4',
    500: '#1f137d',
    950: '#000000',
  },
}
SCSS
$custom: #1f137d;
$custom-light: #6c55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f137d",
  "rgb": {
    "r": 31,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 246.792,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.16416,
    "h": 275.1
  },
  "luminance": 0.02238
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F137D

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

Preview Lab → · Contrast checker → · Palette generator →

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