#1F319E#1F319E

#1F319E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.176 H 268.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#1F319E
RGBrgb(31, 49, 158)
HSLhsl(231, 67%, 37%)
HSVhsv(231, 80%, 62%)
CMYKcmyk(80.4%, 69%, 0%, 38%)
CIE-LABlab(26.61, 33.93, -60.72)
CIE-LCHlch(26.61, 69.56, 299.19°)
OKLaboklab(38.09% -0.0046 -0.1759)
OKLCHoklch(38.09% 0.176 268.5)
XYZxyz(7.8328, 4.9557, 32.8848)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F319E #9E8C1F
analogous
#1F719E #1F319E #4D1F9E
triadic
#1F319E #9E1F31 #319E1F
tetradic
#1F319E #9E1F71 #9E8C1F #1F9E4D
square
#1F319E #9E1F71 #9E8C1F #1F9E4D
split-complementary
#1F319E #9E4D1F #719E1F
monochromatic
#0B1138 #15216B #1F319E #2941D1 #596CDE

Accessibility & contrast

On white

10.55
#1F319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F319E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F319E#FFFFFF#000000##FFFFFF
##1F319E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f319e;
/* rgb */ color: rgb(31, 49, 158);
/* oklch */ color: oklch(38.1% 0.176 268.5);
Tailwind
colors: {
  custom: {
    50: '#7269bc',
    500: '#1f319e',
    950: '#000000',
  },
}
SCSS
$custom: #1f319e;
$custom-light: #7269bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f319e",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 231.496,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38093,
    "c": 0.17592,
    "h": 268.5
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#1F319E
secondary
#C2B356
accent
#D23EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F319E

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

Preview Lab → · Contrast checker → · Palette generator →

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