#1F35A5#1F35A5

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

Color values

HEX#1F35A5
RGBrgb(31, 53, 165)
HSLhsl(230, 68%, 38%)
HSVhsv(230, 81%, 65%)
CMYKcmyk(81.2%, 67.9%, 0%, 35.3%)
CIE-LABlab(28.26, 33.95, -62.26)
CIE-LCHlch(28.26, 70.91, 298.60°)
OKLaboklab(39.5% -0.007 -0.1803)
OKLCHoklch(39.5% 0.18 267.8)
XYZxyz(8.6273, 5.5531, 36.2072)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F35A5 #A58F1F
analogous
#1F78A5 #1F35A5 #4C1FA5
triadic
#1F35A5 #A51F35 #35A51F
tetradic
#1F35A5 #A51F78 #A58F1F #1FA54C
square
#1F35A5 #A51F78 #A58F1F #1FA54C
split-complementary
#1F35A5 #A54C1F #78A51F
monochromatic
#0C143E #152471 #1F35A5 #2A47D7 #5E73E1

Accessibility & contrast

On white

9.95
#1F35A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F35A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F35A5
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F35A5#FFFFFF#000000##FFFFFF
##1F35A51.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f35a5;
/* rgb */ color: rgb(31, 53, 165);
/* oklch */ color: oklch(39.5% 0.180 267.8);
Tailwind
colors: {
  custom: {
    50: '#736cc1',
    500: '#1f35a5',
    950: '#000000',
  },
}
SCSS
$custom: #1f35a5;
$custom-light: #736cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f35a5",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 230.149,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.395,
    "c": 0.18046,
    "h": 267.8
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F35A5

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

Preview Lab → · Contrast checker → · Palette generator →

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