#1F358A#1F358A

#1F358A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.144 H 267.5°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#1F358A
RGBrgb(31, 53, 138)
HSLhsl(228, 63%, 33%)
HSVhsv(228, 78%, 54%)
CMYKcmyk(77.5%, 61.6%, 0%, 45.9%)
CIE-LABlab(25.78, 23.59, -49.78)
CIE-LCHlch(25.78, 55.09, 295.35°)
OKLaboklab(36.92% -0.0062 -0.1438)
OKLCHoklch(36.92% 0.144 267.5)
XYZxyz(6.4240, 4.6718, 24.6030)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F358A #8A741F
analogous
#1F6A8A #1F358A #3F1F8A
triadic
#1F358A #8A1F35 #358A1F
tetradic
#1F358A #8A1F6A #8A741F #1F8A3F
square
#1F358A #8A1F6A #8A741F #1F8A3F
split-complementary
#1F358A #8A3F1F #6A8A1F
monochromatic
#090F26 #142258 #1F358A #2A48BC #4C69D7

Accessibility & contrast

On white

10.86
#1F358A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F358A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F358A
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F358A#FFFFFF#000000##FFFFFF
##1F358A1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f358a;
/* rgb */ color: rgb(31, 53, 138);
/* oklch */ color: oklch(36.9% 0.144 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c6cad',
    500: '#1f358a',
    950: '#000000',
  },
}
SCSS
$custom: #1f358a;
$custom-light: #6c6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f358a",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 138
  },
  "hsl": {
    "h": 227.664,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36915,
    "c": 0.14394,
    "h": 267.5
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#1F358A
secondary
#BAA34B
accent
#C441E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F358A

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

Preview Lab → · Contrast checker → · Palette generator →

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