#1F367C#1F367C

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

Color values

HEX#1F367C
RGBrgb(31, 54, 124)
HSLhsl(225, 60%, 30%)
HSVhsv(225, 75%, 49%)
CMYKcmyk(75%, 56.5%, 0%, 51.4%)
CIE-LABlab(24.90, 17.33, -42.44)
CIE-LCHlch(24.90, 45.85, 292.22°)
OKLaboklab(35.9% -0.0076 -0.1222)
OKLCHoklch(35.9% 0.122 266.5)
XYZxyz(5.5211, 4.3843, 19.6202)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F367C #7C651F
analogous
#1F647C #1F367C #361F7C
triadic
#1F367C #7C1F36 #367C1F
tetradic
#1F367C #7C1F64 #7C651F #1F7C36
square
#1F367C #7C1F64 #7C651F #1F7C36
split-complementary
#1F367C #7C361F #647C1F
monochromatic
#070B1A #13214B #1F367C #2B4BAD #4567D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F367C#FFFFFF#000000##FFFFFF
##1F367C1.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)
#00407E
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004753
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f367c;
/* rgb */ color: rgb(31, 54, 124);
/* oklch */ color: oklch(35.9% 0.122 266.5);
Tailwind
colors: {
  custom: {
    50: '#686ca2',
    500: '#1f367c',
    950: '#000000',
  },
}
SCSS
$custom: #1f367c;
$custom-light: #686ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f367c",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 124
  },
  "hsl": {
    "h": 225.161,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35896,
    "c": 0.12245,
    "h": 266.5
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#1F367C
secondary
#AF9648
accent
#BC45E3
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F367C

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

Preview Lab → · Contrast checker → · Palette generator →

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