#1F3C95#1F3C95

#1F3C95 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.150 H 265.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#1F3C95
RGBrgb(31, 60, 149)
HSLhsl(225, 66%, 35%)
HSVhsv(225, 79%, 58%)
CMYKcmyk(79.2%, 59.7%, 0%, 41.6%)
CIE-LABlab(28.62, 23.11, -51.93)
CIE-LCHlch(28.62, 56.84, 293.99°)
OKLaboklab(39.33% -0.0109 -0.15)
OKLCHoklch(39.33% 0.15 265.9)
XYZxyz(7.6038, 5.6921, 29.1259)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C95 #95781F
analogous
#1F7795 #1F3C95 #3D1F95
triadic
#1F3C95 #951F3C #3C951F
tetradic
#1F3C95 #951F77 #95781F #1F953D
square
#1F3C95 #951F77 #95781F #1F953D
split-complementary
#1F3C95 #953D1F #77951F
monochromatic
#0A1330 #142862 #1F3C95 #2A50C8 #5375DB

Accessibility & contrast

On white

9.82
#1F3C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3C95
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C95#FFFFFF#000000##FFFFFF
##1F3C951.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3c95;
/* rgb */ color: rgb(31, 60, 149);
/* oklch */ color: oklch(39.3% 0.150 265.9);
Tailwind
colors: {
  custom: {
    50: '#6e71b5',
    500: '#1f3c95',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c95;
$custom-light: #6e71b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c95",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 149
  },
  "hsl": {
    "h": 225.254,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39327,
    "c": 0.1504,
    "h": 265.9
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#1F3C95
secondary
#BFA451
accent
#BF3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3C95

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

Preview Lab → · Contrast checker → · Palette generator →

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