#1F1968#1F1968

#1F1968 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.131 H 277.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#1F1968
RGBrgb(31, 25, 104)
HSLhsl(245, 61%, 25%)
HSVhsv(245, 76%, 41%)
CMYKcmyk(70.2%, 76%, 0%, 59.2%)
CIE-LABlab(15.41, 29.52, -45.07)
CIE-LCHlch(15.41, 53.88, 303.22°)
OKLaboklab(28.35% 0.0167 -0.1302)
OKLCHoklch(28.35% 0.131 277.3)
XYZxyz(3.4106, 1.9858, 13.2976)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1968 #626819
analogous
#193A68 #1F1968 #461968
triadic
#1F1968 #681F19 #19681F
tetradic
#1F1968 #68193A #626819 #196846
square
#1F1968 #68193A #626819 #196846
split-complementary
#1F1968 #684619 #3A6819
monochromatic
#070619 #100D37 #1F1968 #2E2599 #3C31CB

Accessibility & contrast

On white

15.03
#1F1968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F1968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1968
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1968#FFFFFF#000000##FFFFFF
##1F19681.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1968;
/* rgb */ color: rgb(31, 25, 104);
/* oklch */ color: oklch(28.3% 0.131 277.3);
Tailwind
colors: {
  custom: {
    50: '#665794',
    500: '#1f1968',
    950: '#000000',
  },
}
SCSS
$custom: #1f1968;
$custom-light: #665794;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1968",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 244.557,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28345,
    "c": 0.13123,
    "h": 277.3
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#1F1968
secondary
#979E3F
accent
#E443D8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1F1968

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

Preview Lab → · Contrast checker → · Palette generator →

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