#1F3F9C#1F3F9C

#1F3F9C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.156 H 265.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#1F3F9C
RGBrgb(31, 63, 156)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 80%, 61%)
CMYKcmyk(80.1%, 59.6%, 0%, 38.8%)
CIE-LABlab(30.02, 23.81, -53.91)
CIE-LCHlch(30.02, 58.94, 293.83°)
OKLaboklab(40.56% -0.0127 -0.1558)
OKLCHoklch(40.56% 0.156 265.4)
XYZxyz(8.3412, 6.2457, 32.2120)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F9C #9C7C1F
analogous
#1F7E9C #1F3F9C #3E1F9C
triadic
#1F3F9C #9C1F3F #3F9C1F
tetradic
#1F3F9C #9C1F7E #9C7C1F #1F9C3E
square
#1F3F9C #9C1F7E #9C7C1F #1F9C3E
split-complementary
#1F3F9C #9C3E1F #7E9C1F
monochromatic
#0B1636 #152A69 #1F3F9C #2954CF #587ADE

Accessibility & contrast

On white

9.34
#1F3F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F3F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F9C
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F9C#FFFFFF#000000##FFFFFF
##1F3F9C1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#005767
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3f9c;
/* rgb */ color: rgb(31, 63, 156);
/* oklch */ color: oklch(40.6% 0.156 265.4);
Tailwind
colors: {
  custom: {
    50: '#7073ba',
    500: '#1f3f9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f9c;
$custom-light: #7073ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f9c",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 156
  },
  "hsl": {
    "h": 224.64,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40558,
    "c": 0.15629,
    "h": 265.4
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#1F3F9C
secondary
#C1A655
accent
#BE3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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