#1F318C#1F318C

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

Color values

HEX#1F318C
RGBrgb(31, 49, 140)
HSLhsl(230, 64%, 34%)
HSVhsv(230, 78%, 55%)
CMYKcmyk(77.9%, 65%, 0%, 45.1%)
CIE-LABlab(24.89, 27.11, -52.48)
CIE-LCHlch(24.89, 59.06, 297.32°)
OKLaboklab(36.31% -0.0035 -0.1517)
OKLCHoklch(36.31% 0.152 268.7)
XYZxyz(6.3954, 4.3807, 25.3144)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F318C #8C7A1F
analogous
#1F678C #1F318C #431F8C
triadic
#1F318C #8C1F31 #318C1F
tetradic
#1F318C #8C1F67 #8C7A1F #1F8C43
square
#1F318C #8C1F67 #8C7A1F #1F8C43
split-complementary
#1F318C #8C431F #678C1F
monochromatic
#090E28 #141F5A #1F318C #2A43BE #4E64D8

Accessibility & contrast

On white

11.19
#1F318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F318C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F318C#FFFFFF#000000##FFFFFF
##1F318C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f318c;
/* rgb */ color: rgb(31, 49, 140);
/* oklch */ color: oklch(36.3% 0.152 268.7);
Tailwind
colors: {
  custom: {
    50: '#6d69ae',
    500: '#1f318c',
    950: '#000000',
  },
}
SCSS
$custom: #1f318c;
$custom-light: #6d69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f318c",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 230.092,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36313,
    "c": 0.15179,
    "h": 268.7
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#1F318C
secondary
#BBA84C
accent
#CB41E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F318C

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

Preview Lab → · Contrast checker → · Palette generator →

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