#1F318F#1F318F

#1F318F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.156 H 268.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#1F318F
RGBrgb(31, 49, 143)
HSLhsl(230, 64%, 34%)
HSVhsv(230, 78%, 56%)
CMYKcmyk(78.3%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.17, 28.26, -53.88)
CIE-LCHlch(25.17, 60.84, 297.68°)
OKLaboklab(36.6% -0.0036 -0.1559)
OKLCHoklch(36.6% 0.156 268.7)
XYZxyz(6.6196, 4.4704, 26.4953)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F318F #8F7D1F
analogous
#1F698F #1F318F #451F8F
triadic
#1F318F #8F1F31 #318F1F
tetradic
#1F318F #8F1F69 #8F7D1F #1F8F45
square
#1F318F #8F1F69 #8F7D1F #1F8F45
split-complementary
#1F318F #8F451F #698F1F
monochromatic
#090F2A #14205D #1F318F #2A42C1 #4F66D9

Accessibility & contrast

On white

11.09
#1F318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F318F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F318F#FFFFFF#000000##FFFFFF
##1F318F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f318f;
/* rgb */ color: rgb(31, 49, 143);
/* oklch */ color: oklch(36.6% 0.156 268.7);
Tailwind
colors: {
  custom: {
    50: '#6e69b1',
    500: '#1f318f',
    950: '#000000',
  },
}
SCSS
$custom: #1f318f;
$custom-light: #6e69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f318f",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 230.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.1559,
    "h": 268.7
  },
  "luminance": 0.04471
}

Semantic roles & 50–950 ramp

primary
#1F318F
secondary
#BCAA4E
accent
#CD40E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F318F

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

Preview Lab → · Contrast checker → · Palette generator →

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