#1F358E#1F358E

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

Color values

HEX#1F358E
RGBrgb(31, 53, 142)
HSLhsl(228, 64%, 34%)
HSVhsv(228, 78%, 56%)
CMYKcmyk(78.2%, 62.7%, 0%, 44.3%)
CIE-LABlab(26.13, 25.16, -51.69)
CIE-LCHlch(26.13, 57.49, 295.95°)
OKLaboklab(37.28% -0.0062 -0.1494)
OKLCHoklch(37.28% 0.15 267.6)
XYZxyz(6.7190, 4.7898, 26.1563)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F358E #8E781F
analogous
#1F6D8E #1F358E #411F8E
triadic
#1F358E #8E1F35 #358E1F
tetradic
#1F358E #8E1F6D #8E781F #1F8E41
square
#1F358E #8E1F6D #8E781F #1F8E41
split-complementary
#1F358E #8E411F #6D8E1F
monochromatic
#09102A #14225C #1F358E #2A48C0 #4F6AD9

Accessibility & contrast

On white

10.72
#1F358E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F358E
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F358E#FFFFFF#000000##FFFFFF
##1F358E1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f358e;
/* rgb */ color: rgb(31, 53, 142);
/* oklch */ color: oklch(37.3% 0.150 267.6);
Tailwind
colors: {
  custom: {
    50: '#6d6cb0',
    500: '#1f358e',
    950: '#000000',
  },
}
SCSS
$custom: #1f358e;
$custom-light: #6d6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f358e",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 228.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37282,
    "c": 0.14954,
    "h": 267.6
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#1F358E
secondary
#BBA64D
accent
#C641E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F358E

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

Preview Lab → · Contrast checker → · Palette generator →

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