#1F368E#1F368E

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

Color values

HEX#1F368E
RGBrgb(31, 54, 142)
HSLhsl(228, 64%, 34%)
HSVhsv(228, 78%, 56%)
CMYKcmyk(78.2%, 62%, 0%, 44.3%)
CIE-LABlab(26.40, 24.47, -51.26)
CIE-LCHlch(26.40, 56.80, 295.52°)
OKLaboklab(37.48% -0.0069 -0.1481)
OKLCHoklch(37.48% 0.148 267.3)
XYZxyz(6.7650, 4.8819, 26.1717)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F368E #8E771F
analogous
#1F6E8E #1F368E #401F8E
triadic
#1F368E #8E1F36 #368E1F
tetradic
#1F368E #8E1F6E #8E771F #1F8E40
square
#1F368E #8E1F6E #8E771F #1F8E40
split-complementary
#1F368E #8E401F #6E8E1F
monochromatic
#09102A #14235C #1F368E #2A49C0 #4F6BD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F368E#FFFFFF#000000##FFFFFF
##1F368E1.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)
#004491
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f368e;
/* rgb */ color: rgb(31, 54, 142);
/* oklch */ color: oklch(37.5% 0.148 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6cb0',
    500: '#1f368e',
    950: '#000000',
  },
}
SCSS
$custom: #1f368e;
$custom-light: #6d6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f368e",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 227.568,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37481,
    "c": 0.14827,
    "h": 267.3
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#1F368E
secondary
#BBA54D
accent
#C541E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F368E

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

Preview Lab → · Contrast checker → · Palette generator →

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