#1F1895#1F1895

#1F1895 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.5% C 0.189 H 271.9°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1F1895
RGBrgb(31, 24, 149)
HSLhsl(243, 72%, 34%)
HSVhsv(243, 84%, 58%)
CMYKcmyk(79.2%, 83.9%, 0%, 41.6%)
CIE-LABlab(20.49, 45.21, -65.31)
CIE-LCHlch(20.49, 79.43, 304.69°)
OKLaboklab(33.45% 0.0064 -0.189)
OKLCHoklch(33.45% 0.189 271.9)
XYZxyz(6.3147, 3.1138, 28.6962)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1895 #8E9518
analogous
#185095 #1F1895 #5E1895
triadic
#1F1895 #951F18 #18951F
tetradic
#1F1895 #951850 #8E9518 #18955E
square
#1F1895 #951850 #8E9518 #18955E
split-complementary
#1F1895 #955E18 #509518
monochromatic
#09072C #141060 #1F1895 #2A20CA #4F46E1

Accessibility & contrast

On white

12.94
#1F1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1895
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1895#FFFFFF#000000##FFFFFF
##1F18951.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003798
Deuteranopia (green-blind)
#002B93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f1895;
/* rgb */ color: rgb(31, 24, 149);
/* oklch */ color: oklch(33.5% 0.189 271.9);
Tailwind
colors: {
  custom: {
    50: '#7259b6',
    500: '#1f1895',
    950: '#000000',
  },
}
SCSS
$custom: #1f1895;
$custom-light: #7259b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1895",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 243.36,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33454,
    "c": 0.18908,
    "h": 271.9
  },
  "luminance": 0.03115
}

Semantic roles & 50–950 ramp

primary
#1F1895
secondary
#BBC246
accent
#EF39E5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1895

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

Preview Lab → · Contrast checker → · Palette generator →

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