#1F2794#1F2794

#1F2794 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.174 H 270.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2794
RGBrgb(31, 39, 148)
HSLhsl(236, 65%, 35%)
HSVhsv(236, 79%, 58%)
CMYKcmyk(79.1%, 73.6%, 0%, 42%)
CIE-LABlab(23.27, 36.60, -60.10)
CIE-LCHlch(23.27, 70.36, 301.34°)
OKLaboklab(35.38% 0.0013 -0.174)
OKLCHoklch(35.38% 0.174 270.4)
XYZxyz(6.6341, 3.8797, 28.4105)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2794 #948C1F
analogous
#1F6294 #1F2794 #511F94
triadic
#1F2794 #941F27 #27941F
tetradic
#1F2794 #941F62 #948C1F #1F9451
square
#1F2794 #941F62 #948C1F #1F9451
split-complementary
#1F2794 #94511F #62941F
monochromatic
#0A0C2F #141A61 #1F2794 #2A34C7 #535CDB

Accessibility & contrast

On white

11.82
#1F2794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2794
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2794#FFFFFF#000000##FFFFFF
##1F27941.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2794;
/* rgb */ color: rgb(31, 39, 148);
/* oklch */ color: oklch(35.4% 0.174 270.4);
Tailwind
colors: {
  custom: {
    50: '#7062b5',
    500: '#1f2794',
    950: '#000000',
  },
}
SCSS
$custom: #1f2794;
$custom-light: #7062b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2794",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 235.897,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.17402,
    "h": 270.4
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#1F2794
secondary
#BEB751
accent
#DD3FE8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2794

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

Preview Lab → · Contrast checker → · Palette generator →

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