#1F185E#1F185E

#1F185E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.119 H 279.5°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#1F185E
RGBrgb(31, 24, 94)
HSLhsl(246, 59%, 23%)
HSVhsv(246, 74%, 37%)
CMYKcmyk(67%, 74.5%, 0%, 63.1%)
CIE-LABlab(14.13, 26.57, -40.55)
CIE-LCHlch(14.13, 48.48, 303.23°)
OKLaboklab(27.11% 0.0195 -0.1169)
OKLCHoklch(27.11% 0.119 279.5)
XYZxyz(2.9114, 1.7525, 10.7723)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F185E #575E18
analogous
#18345E #1F185E #42185E
triadic
#1F185E #5E1F18 #185E1F
tetradic
#1F185E #5E1834 #575E18 #185E42
square
#1F185E #5E1834 #575E18 #185E42
split-complementary
#1F185E #5E4218 #345E18
monochromatic
#080618 #0F0C2D #1F185E #2F248F #3F31C0

Accessibility & contrast

On white

15.55
#1F185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F185E
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F185E#FFFFFF#000000##FFFFFF
##1F185E1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f185e;
/* rgb */ color: rgb(31, 24, 94);
/* oklch */ color: oklch(27.1% 0.119 279.5);
Tailwind
colors: {
  custom: {
    50: '#64568c',
    500: '#1f185e',
    950: '#000000',
  },
}
SCSS
$custom: #1f185e;
$custom-light: #64568c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f185e",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 246,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2711,
    "c": 0.11856,
    "h": 279.5
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#1F185E
secondary
#8C943D
accent
#E345D3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F185E

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

Preview Lab → · Contrast checker → · Palette generator →

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