#1F3594#1F3594

#1F3594 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.158 H 267.7°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#1F3594
RGBrgb(31, 53, 148)
HSLhsl(229, 65%, 35%)
HSVhsv(229, 79%, 58%)
CMYKcmyk(79.1%, 64.2%, 0%, 42%)
CIE-LABlab(26.66, 27.49, -54.52)
CIE-LCHlch(26.66, 61.06, 296.76°)
OKLaboklab(37.84% -0.0063 -0.1577)
OKLCHoklch(37.84% 0.158 267.7)
XYZxyz(7.1816, 4.9748, 28.5930)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3594 #947E1F
analogous
#1F6F94 #1F3594 #441F94
triadic
#1F3594 #941F35 #35941F
tetradic
#1F3594 #941F6F #947E1F #1F9444
square
#1F3594 #941F6F #947E1F #1F9444
split-complementary
#1F3594 #94441F #6F941F
monochromatic
#0A112F #142361 #1F3594 #2A47C7 #536CDB

Accessibility & contrast

On white

10.53
#1F3594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#1F3594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3594
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3594#FFFFFF#000000##FFFFFF
##1F35941.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3594;
/* rgb */ color: rgb(31, 53, 148);
/* oklch */ color: oklch(37.8% 0.158 267.7);
Tailwind
colors: {
  custom: {
    50: '#6f6cb4',
    500: '#1f3594',
    950: '#000000',
  },
}
SCSS
$custom: #1f3594;
$custom-light: #6f6cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3594",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 148
  },
  "hsl": {
    "h": 228.718,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37844,
    "c": 0.15781,
    "h": 267.7
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#1F3594
secondary
#BEAA51
accent
#C93FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3594

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

Preview Lab → · Contrast checker → · Palette generator →

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