#1F35A6#1F35A6

#1F35A6 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.182 H 267.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#1F35A6
RGBrgb(31, 53, 166)
HSLhsl(230, 69%, 39%)
HSVhsv(230, 81%, 65%)
CMYKcmyk(81.3%, 68.1%, 0%, 34.9%)
CIE-LABlab(28.35, 34.32, -62.70)
CIE-LCHlch(28.35, 71.48, 298.70°)
OKLaboklab(39.6% -0.0071 -0.1816)
OKLCHoklch(39.6% 0.182 267.8)
XYZxyz(8.7187, 5.5897, 36.6884)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F35A6 #A6901F
analogous
#1F78A6 #1F35A6 #4C1FA6
triadic
#1F35A6 #A61F35 #35A61F
tetradic
#1F35A6 #A61F78 #A6901F #1FA64C
square
#1F35A6 #A61F78 #A6901F #1FA64C
split-complementary
#1F35A6 #A64C1F #78A61F
monochromatic
#0C143F #152572 #1F35A6 #2B47D7 #5E74E1

Accessibility & contrast

On white

9.91
#1F35A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F35A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F35A6
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F35A6#FFFFFF#000000##FFFFFF
##1F35A61.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f35a6;
/* rgb */ color: rgb(31, 53, 166);
/* oklch */ color: oklch(39.6% 0.182 267.8);
Tailwind
colors: {
  custom: {
    50: '#736cc1',
    500: '#1f35a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f35a6;
$custom-light: #736cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f35a6",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 230.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.396,
    "c": 0.18176,
    "h": 267.8
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#1F35A6
secondary
#C5B45B
accent
#CF3CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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