#1F318D#1F318D

#1F318D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.153 H 268.7°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#1F318D
RGBrgb(31, 49, 141)
HSLhsl(230, 64%, 34%)
HSVhsv(230, 78%, 55%)
CMYKcmyk(78%, 65.2%, 0%, 44.7%)
CIE-LABlab(24.98, 27.49, -52.95)
CIE-LCHlch(24.98, 59.66, 297.44°)
OKLaboklab(36.41% -0.0035 -0.1531)
OKLCHoklch(36.41% 0.153 268.7)
XYZxyz(6.4694, 4.4103, 25.7045)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F318D #8D7B1F
analogous
#1F688D #1F318D #441F8D
triadic
#1F318D #8D1F31 #318D1F
tetradic
#1F318D #8D1F68 #8D7B1F #1F8D44
square
#1F318D #8D1F68 #8D7B1F #1F8D44
split-complementary
#1F318D #8D441F #688D1F
monochromatic
#090E29 #14205B #1F318D #2A42BF #4E65D8

Accessibility & contrast

On white

11.16
#1F318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F318D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F318D#FFFFFF#000000##FFFFFF
##1F318D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f318d;
/* rgb */ color: rgb(31, 49, 141);
/* oklch */ color: oklch(36.4% 0.153 268.7);
Tailwind
colors: {
  custom: {
    50: '#6d69af',
    500: '#1f318d',
    950: '#000000',
  },
}
SCSS
$custom: #1f318d;
$custom-light: #6d69af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f318d",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 230.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36409,
    "c": 0.15316,
    "h": 268.7
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#1F318D
secondary
#BBA94D
accent
#CC41E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F318D

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

Preview Lab → · Contrast checker → · Palette generator →

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