#1F2594#1F2594

#1F2594 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.176 H 270.7°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#1F2594
RGBrgb(31, 37, 148)
HSLhsl(237, 65%, 35%)
HSVhsv(237, 79%, 58%)
CMYKcmyk(79.1%, 75%, 0%, 42%)
CIE-LABlab(22.83, 37.82, -60.82)
CIE-LCHlch(22.83, 71.61, 301.87°)
OKLaboklab(35.06% 0.0022 -0.1761)
OKLCHoklch(35.06% 0.176 270.7)
XYZxyz(6.5701, 3.7518, 28.3891)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2594 #948E1F
analogous
#1F6094 #1F2594 #531F94
triadic
#1F2594 #941F25 #25941F
tetradic
#1F2594 #941F60 #948E1F #1F9453
square
#1F2594 #941F60 #948E1F #1F9453
split-complementary
#1F2594 #94531F #60941F
monochromatic
#0A0C2F #141861 #1F2594 #2A32C7 #535ADB

Accessibility & contrast

On white

12.00
#1F2594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2594
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2594#FFFFFF#000000##FFFFFF
##1F25941.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2594;
/* rgb */ color: rgb(31, 37, 148);
/* oklch */ color: oklch(35.1% 0.176 270.7);
Tailwind
colors: {
  custom: {
    50: '#7061b5',
    500: '#1f2594',
    950: '#000000',
  },
}
SCSS
$custom: #1f2594;
$custom-light: #7061b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2594",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 148
  },
  "hsl": {
    "h": 236.923,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35063,
    "c": 0.17612,
    "h": 270.7
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#1F2594
secondary
#BEB951
accent
#E03FE8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2594

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

Preview Lab → · Contrast checker → · Palette generator →

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