#1F3096#1F3096

#1F3096 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.167 H 268.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#1F3096
RGBrgb(31, 48, 150)
HSLhsl(231, 66%, 35%)
HSVhsv(231, 79%, 59%)
CMYKcmyk(79.3%, 68%, 0%, 41.2%)
CIE-LABlab(25.58, 31.59, -57.52)
CIE-LCHlch(25.58, 65.62, 298.78°)
OKLaboklab(37.11% -0.0034 -0.1665)
OKLCHoklch(37.11% 0.167 268.8)
XYZxyz(7.1251, 4.6064, 29.3619)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3096 #96851F
analogous
#1F6B96 #1F3096 #4A1F96
triadic
#1F3096 #961F30 #30961F
tetradic
#1F3096 #961F6B #96851F #1F964A
square
#1F3096 #961F6B #96851F #1F964A
split-complementary
#1F3096 #964A1F #6B961F
monochromatic
#0A1031 #152063 #1F3096 #2940C9 #5467DC

Accessibility & contrast

On white

10.93
#1F3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3096
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3096#FFFFFF#000000##FFFFFF
##1F30961.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3096;
/* rgb */ color: rgb(31, 48, 150);
/* oklch */ color: oklch(37.1% 0.167 268.8);
Tailwind
colors: {
  custom: {
    50: '#7068b6',
    500: '#1f3096',
    950: '#000000',
  },
}
SCSS
$custom: #1f3096;
$custom-light: #7068b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3096",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 231.429,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37109,
    "c": 0.16654,
    "h": 268.8
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#1F3096
secondary
#BFAF52
accent
#D03FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3096

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

Preview Lab → · Contrast checker → · Palette generator →

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