#1F1994#1F1994

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

Color values

HEX#1F1994
RGBrgb(31, 25, 148)
HSLhsl(243, 71%, 34%)
HSVhsv(243, 83%, 58%)
CMYKcmyk(79.1%, 83.1%, 0%, 42%)
CIE-LABlab(20.53, 44.41, -64.62)
CIE-LCHlch(20.53, 78.41, 304.50°)
OKLaboklab(33.45% 0.0063 -0.187)
OKLCHoklch(33.45% 0.187 271.9)
XYZxyz(6.2562, 3.1240, 28.2845)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1994 #8E9419
analogous
#195194 #1F1994 #5D1994
triadic
#1F1994 #941F19 #19941F
tetradic
#1F1994 #941951 #8E9419 #19945D
square
#1F1994 #941951 #8E9419 #19945D
split-complementary
#1F1994 #945D19 #519419
monochromatic
#09072B #141060 #1F1994 #2A22C8 #4F47E0

Accessibility & contrast

On white

12.92
#1F1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1994
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1994#FFFFFF#000000##FFFFFF
##1F19941.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1994;
/* rgb */ color: rgb(31, 25, 148);
/* oklch */ color: oklch(33.4% 0.187 271.9);
Tailwind
colors: {
  custom: {
    50: '#715ab5',
    500: '#1f1994',
    950: '#000000',
  },
}
SCSS
$custom: #1f1994;
$custom-light: #715ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1994",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 242.927,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33446,
    "c": 0.18711,
    "h": 271.9
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#1F1994
secondary
#BBC147
accent
#EE3AE5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1994

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

Preview Lab → · Contrast checker → · Palette generator →

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