#1F319C#1F319C

#1F319C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.173 H 268.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#1F319C
RGBrgb(31, 49, 156)
HSLhsl(231, 67%, 37%)
HSVhsv(231, 80%, 61%)
CMYKcmyk(80.1%, 68.6%, 0%, 38.8%)
CIE-LABlab(26.41, 33.18, -59.83)
CIE-LCHlch(26.41, 68.42, 299.02°)
OKLaboklab(37.89% -0.0044 -0.1732)
OKLCHoklch(37.89% 0.173 268.5)
XYZxyz(7.6621, 4.8874, 31.9856)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F319C #9C8A1F
analogous
#1F709C #1F319C #4C1F9C
triadic
#1F319C #9C1F31 #319C1F
tetradic
#1F319C #9C1F70 #9C8A1F #1F9C4C
square
#1F319C #9C1F70 #9C8A1F #1F9C4C
split-complementary
#1F319C #9C4C1F #709C1F
monochromatic
#0B1136 #152169 #1F319C #2941CF #586BDE

Accessibility & contrast

On white

10.62
#1F319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F319C
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F319C#FFFFFF#000000##FFFFFF
##1F319C1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f319c;
/* rgb */ color: rgb(31, 49, 156);
/* oklch */ color: oklch(37.9% 0.173 268.5);
Tailwind
colors: {
  custom: {
    50: '#7169ba',
    500: '#1f319c',
    950: '#000000',
  },
}
SCSS
$custom: #1f319c;
$custom-light: #7169ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f319c",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 231.36,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3789,
    "c": 0.17331,
    "h": 268.5
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#1F319C
secondary
#C1B255
accent
#D13EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F319C

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

Preview Lab → · Contrast checker → · Palette generator →

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