#1F3A9B#1F3A9B

#1F3A9B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.161 H 266.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1F3A9B
RGBrgb(31, 58, 155)
HSLhsl(227, 67%, 36%)
HSVhsv(227, 80%, 61%)
CMYKcmyk(80%, 62.6%, 0%, 39.2%)
CIE-LABlab(28.60, 26.82, -55.63)
CIE-LCHlch(28.60, 61.76, 295.74°)
OKLaboklab(39.47% -0.0094 -0.1609)
OKLCHoklch(39.47% 0.161 266.6)
XYZxyz(7.9925, 5.6831, 31.6797)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A9B #9B801F
analogous
#1F789B #1F3A9B #421F9B
triadic
#1F3A9B #9B1F3A #3A9B1F
tetradic
#1F3A9B #9B1F78 #9B801F #1F9B42
square
#1F3A9B #9B1F78 #9B801F #1F9B42
split-complementary
#1F3A9B #9B421F #789B1F
monochromatic
#0B1435 #152768 #1F3A9B #294DCE #5774DD

Accessibility & contrast

On white

9.83
#1F3A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F3A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A9B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A9B#FFFFFF#000000##FFFFFF
##1F3A9B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3a9b;
/* rgb */ color: rgb(31, 58, 155);
/* oklch */ color: oklch(39.5% 0.161 266.6);
Tailwind
colors: {
  custom: {
    50: '#706fb9',
    500: '#1f3a9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a9b;
$custom-light: #706fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a9b",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 226.935,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3947,
    "c": 0.16118,
    "h": 266.6
  },
  "luminance": 0.05684
}

Semantic roles & 50–950 ramp

primary
#1F3A9B
secondary
#C1A955
accent
#C43EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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