#1F187E#1F187E

#1F187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.161 H 274.3°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#1F187E
RGBrgb(31, 24, 126)
HSLhsl(244, 68%, 29%)
HSVhsv(244, 81%, 49%)
CMYKcmyk(75.4%, 81%, 0%, 50.6%)
CIE-LABlab(17.69, 37.72, -55.53)
CIE-LCHlch(17.69, 67.13, 304.19°)
OKLaboklab(30.69% 0.0122 -0.1606)
OKLCHoklch(30.69% 0.161 274.3)
XYZxyz(4.6564, 2.4505, 19.9622)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F187E #777E18
analogous
#18447E #1F187E #52187E
triadic
#1F187E #7E1F18 #187E1F
tetradic
#1F187E #7E1844 #777E18 #187E52
square
#1F187E #7E1844 #777E18 #187E52
split-complementary
#1F187E #7E5218 #447E18
monochromatic
#06051A #120E4B #1F187E #2C22B1 #4337D9

Accessibility & contrast

On white

14.09
#1F187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F187E
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F187E#FFFFFF#000000##FFFFFF
##1F187E1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f187e;
/* rgb */ color: rgb(31, 24, 126);
/* oklch */ color: oklch(30.7% 0.161 274.3);
Tailwind
colors: {
  custom: {
    50: '#6c57a5',
    500: '#1f187e',
    950: '#000000',
  },
}
SCSS
$custom: #1f187e;
$custom-light: #6c57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f187e",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 244.118,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30694,
    "c": 0.16106,
    "h": 274.3
  },
  "luminance": 0.02451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F187E

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

Preview Lab → · Contrast checker → · Palette generator →

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