#1F1964#1F1964

#1F1964 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.126 H 278.0°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#1F1964
RGBrgb(31, 25, 100)
HSLhsl(245, 60%, 25%)
HSVhsv(245, 75%, 39%)
CMYKcmyk(69%, 75%, 0%, 60.8%)
CIE-LABlab(14.99, 28.09, -43.13)
CIE-LCHlch(14.99, 51.47, 303.07°)
OKLaboklab(27.91% 0.0175 -0.1245)
OKLCHoklch(27.91% 0.126 278)
XYZxyz(3.2122, 1.9064, 12.2528)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1964 #5E6419
analogous
#193964 #1F1964 #451964
triadic
#1F1964 #641F19 #19641F
tetradic
#1F1964 #641939 #5E6419 #196445
square
#1F1964 #641939 #5E6419 #196445
split-complementary
#1F1964 #644519 #396419
monochromatic
#080618 #100D33 #1F1964 #2E2595 #3D31C6

Accessibility & contrast

On white

15.20
#1F1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1964
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1964#FFFFFF#000000##FFFFFF
##1F19641.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#002E3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1964;
/* rgb */ color: rgb(31, 25, 100);
/* oklch */ color: oklch(27.9% 0.126 278.0);
Tailwind
colors: {
  custom: {
    50: '#655691',
    500: '#1f1964',
    950: '#000000',
  },
}
SCSS
$custom: #1f1964;
$custom-light: #655691;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1964",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 244.8,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27914,
    "c": 0.12573,
    "h": 278
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#1F1964
secondary
#939A3F
accent
#E345D6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1F1964

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

Preview Lab → · Contrast checker → · Palette generator →

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