#1F185D#1F185D

#1F185D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 27.0% C 0.117 H 279.7°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#1F185D
RGBrgb(31, 24, 93)
HSLhsl(246, 59%, 23%)
HSVhsv(246, 74%, 36%)
CMYKcmyk(66.7%, 74.2%, 0%, 63.5%)
CIE-LABlab(14.03, 26.21, -40.05)
CIE-LCHlch(14.03, 47.86, 303.20°)
OKLaboklab(27.01% 0.0197 -0.1155)
OKLCHoklch(27.01% 0.117 279.7)
XYZxyz(2.8669, 1.7347, 10.5376)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F185D #565D18
analogous
#18335D #1F185D #41185D
triadic
#1F185D #5D1F18 #185D1F
tetradic
#1F185D #5D1833 #565D18 #185D41
square
#1F185D #5D1833 #565D18 #185D41
split-complementary
#1F185D #5D4118 #335D18
monochromatic
#080618 #0F0B2C #1F185D #2F258E #3F31BE

Accessibility & contrast

On white

15.59
#1F185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F185D
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F185D#FFFFFF#000000##FFFFFF
##1F185D1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f185d;
/* rgb */ color: rgb(31, 24, 93);
/* oklch */ color: oklch(27.0% 0.117 279.7);
Tailwind
colors: {
  custom: {
    50: '#64558c',
    500: '#1f185d',
    950: '#000000',
  },
}
SCSS
$custom: #1f185d;
$custom-light: #64558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f185d",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 246.087,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27005,
    "c": 0.11714,
    "h": 279.7
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#1F185D
secondary
#8B933D
accent
#E246D2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F185D

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

Preview Lab → · Contrast checker → · Palette generator →

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