#1F1965#1F1965

#1F1965 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.127 H 277.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#1F1965
RGBrgb(31, 25, 101)
HSLhsl(245, 60%, 25%)
HSVhsv(245, 75%, 40%)
CMYKcmyk(69.3%, 75.2%, 0%, 60.4%)
CIE-LABlab(15.09, 28.45, -43.62)
CIE-LCHlch(15.09, 52.07, 303.11°)
OKLaboklab(28.02% 0.0173 -0.1259)
OKLCHoklch(28.02% 0.127 277.8)
XYZxyz(3.2609, 1.9259, 12.5093)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1965 #5F6519
analogous
#193965 #1F1965 #451965
triadic
#1F1965 #651F19 #19651F
tetradic
#1F1965 #651939 #5F6519 #196545
square
#1F1965 #651939 #5F6519 #196545
split-complementary
#1F1965 #654519 #396519
monochromatic
#080619 #100D34 #1F1965 #2E2596 #3D31C7

Accessibility & contrast

On white

15.16
#1F1965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1965 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1965
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1965#FFFFFF#000000##FFFFFF
##1F19651.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#002E3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1965;
/* rgb */ color: rgb(31, 25, 101);
/* oklch */ color: oklch(28.0% 0.127 277.8);
Tailwind
colors: {
  custom: {
    50: '#655792',
    500: '#1f1965',
    950: '#000000',
  },
}
SCSS
$custom: #1f1965;
$custom-light: #655792;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1965",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 244.737,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28021,
    "c": 0.12711,
    "h": 277.8
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#1F1965
secondary
#949B3F
accent
#E344D7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1F1965

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

Preview Lab → · Contrast checker → · Palette generator →

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