#1F368D#1F368D

#1F368D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.147 H 267.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#1F368D
RGBrgb(31, 54, 141)
HSLhsl(227, 64%, 34%)
HSVhsv(227, 78%, 55%)
CMYKcmyk(78%, 61.7%, 0%, 44.7%)
CIE-LABlab(26.31, 24.08, -50.78)
CIE-LCHlch(26.31, 56.20, 295.37°)
OKLaboklab(37.39% -0.0069 -0.1467)
OKLCHoklch(37.39% 0.147 267.3)
XYZxyz(6.6903, 4.8520, 25.7781)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F368D #8D761F
analogous
#1F6D8D #1F368D #3F1F8D
triadic
#1F368D #8D1F36 #368D1F
tetradic
#1F368D #8D1F6D #8D761F #1F8D3F
square
#1F368D #8D1F6D #8D761F #1F8D3F
split-complementary
#1F368D #8D3F1F #6D8D1F
monochromatic
#091029 #14235B #1F368D #2A49BF #4E6BD8

Accessibility & contrast

On white

10.66
#1F368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F368D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F368D#FFFFFF#000000##FFFFFF
##1F368D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f368d;
/* rgb */ color: rgb(31, 54, 141);
/* oklch */ color: oklch(37.4% 0.147 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6caf',
    500: '#1f368d',
    950: '#000000',
  },
}
SCSS
$custom: #1f368d;
$custom-light: #6d6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f368d",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 227.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3739,
    "c": 0.14687,
    "h": 267.3
  },
  "luminance": 0.04853
}

Semantic roles & 50–950 ramp

primary
#1F368D
secondary
#BBA44D
accent
#C441E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F368D

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

Preview Lab → · Contrast checker → · Palette generator →

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