#1F187F#1F187F

#1F187F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.162 H 274.2°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#1F187F
RGBrgb(31, 24, 127)
HSLhsl(244, 68%, 30%)
HSVhsv(244, 81%, 50%)
CMYKcmyk(75.6%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.81, 38.06, -55.97)
CIE-LCHlch(17.81, 67.68, 304.22°)
OKLaboklab(30.81% 0.0119 -0.1619)
OKLCHoklch(30.81% 0.162 274.2)
XYZxyz(4.7212, 2.4764, 20.3037)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F187F #787F18
analogous
#18447F #1F187F #53187F
triadic
#1F187F #7F1F18 #187F1F
tetradic
#1F187F #7F1844 #787F18 #187F53
square
#1F187F #7F1844 #787F18 #187F53
split-complementary
#1F187F #7F5318 #447F18
monochromatic
#06051A #120E4C #1F187F #2C22B2 #4338D9

Accessibility & contrast

On white

14.04
#1F187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1F187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F187F
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F187F#FFFFFF#000000##FFFFFF
##1F187F1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f187f;
/* rgb */ color: rgb(31, 24, 127);
/* oklch */ color: oklch(30.8% 0.162 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c57a5',
    500: '#1f187f',
    950: '#000000',
  },
}
SCSS
$custom: #1f187f;
$custom-light: #6c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f187f",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 244.078,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30812,
    "c": 0.16232,
    "h": 274.2
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#1F187F
secondary
#ABB33F
accent
#EB3DDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F187F

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

Preview Lab → · Contrast checker → · Palette generator →

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