#1F358D#1F358D

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

Color values

HEX#1F358D
RGBrgb(31, 53, 141)
HSLhsl(228, 64%, 34%)
HSVhsv(228, 78%, 55%)
CMYKcmyk(78%, 62.4%, 0%, 44.7%)
CIE-LABlab(26.04, 24.77, -51.22)
CIE-LCHlch(26.04, 56.89, 295.80°)
OKLaboklab(37.19% -0.0062 -0.148)
OKLCHoklch(37.19% 0.148 267.6)
XYZxyz(6.6442, 4.7599, 25.7627)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F358D #8D771F
analogous
#1F6C8D #1F358D #401F8D
triadic
#1F358D #8D1F35 #358D1F
tetradic
#1F358D #8D1F6C #8D771F #1F8D40
square
#1F358D #8D1F6C #8D771F #1F8D40
split-complementary
#1F358D #8D401F #6C8D1F
monochromatic
#090F29 #14225B #1F358D #2A48BF #4E6AD8

Accessibility & contrast

On white

10.76
#1F358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F358D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F358D
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F358D#FFFFFF#000000##FFFFFF
##1F358D1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f358d;
/* rgb */ color: rgb(31, 53, 141);
/* oklch */ color: oklch(37.2% 0.148 267.6);
Tailwind
colors: {
  custom: {
    50: '#6d6caf',
    500: '#1f358d',
    950: '#000000',
  },
}
SCSS
$custom: #1f358d;
$custom-light: #6d6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f358d",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 228,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.14815,
    "h": 267.6
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#1F358D
secondary
#BBA54D
accent
#C641E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F358D

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

Preview Lab → · Contrast checker → · Palette generator →

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