#1F368C#1F368C

#1F368C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.145 H 267.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#1F368C
RGBrgb(31, 54, 140)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 55%)
CMYKcmyk(77.9%, 61.4%, 0%, 45.1%)
CIE-LABlab(26.22, 23.69, -50.30)
CIE-LCHlch(26.22, 55.60, 295.22°)
OKLaboklab(37.3% -0.0069 -0.1453)
OKLCHoklch(37.3% 0.145 267.3)
XYZxyz(6.6162, 4.8224, 25.3880)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F368C #8C751F
analogous
#1F6C8C #1F368C #3E1F8C
triadic
#1F368C #8C1F36 #368C1F
tetradic
#1F368C #8C1F6C #8C751F #1F8C3E
square
#1F368C #8C1F6C #8C751F #1F8C3E
split-complementary
#1F368C #8C3E1F #6C8C1F
monochromatic
#090F28 #14235A #1F368C #2A49BE #4E6BD8

Accessibility & contrast

On white

10.69
#1F368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F368C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F368C
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F368C#FFFFFF#000000##FFFFFF
##1F368C1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f368c;
/* rgb */ color: rgb(31, 54, 140);
/* oklch */ color: oklch(37.3% 0.145 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6cae',
    500: '#1f368c',
    950: '#000000',
  },
}
SCSS
$custom: #1f368c;
$custom-light: #6d6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f368c",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 227.339,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37299,
    "c": 0.14547,
    "h": 267.3
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#1F368C
secondary
#BBA34C
accent
#C441E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F368C

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

Preview Lab → · Contrast checker → · Palette generator →

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