#1F3095#1F3095

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

Color values

HEX#1F3095
RGBrgb(31, 48, 149)
HSLhsl(231, 66%, 35%)
HSVhsv(231, 79%, 58%)
CMYKcmyk(79.2%, 67.8%, 0%, 41.6%)
CIE-LABlab(25.49, 31.21, -57.06)
CIE-LCHlch(25.49, 65.04, 298.68°)
OKLaboklab(37.01% -0.0034 -0.1652)
OKLCHoklch(37.01% 0.165 268.8)
XYZxyz(7.0450, 4.5743, 28.9396)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3095 #95841F
analogous
#1F6B95 #1F3095 #491F95
triadic
#1F3095 #951F30 #30951F
tetradic
#1F3095 #951F6B #95841F #1F9549
square
#1F3095 #951F6B #95841F #1F9549
split-complementary
#1F3095 #95491F #6B951F
monochromatic
#0A0F30 #142062 #1F3095 #2A40C8 #5367DB

Accessibility & contrast

On white

10.97
#1F3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3095
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3095#FFFFFF#000000##FFFFFF
##1F30951.0010.971.9210.97
#FFFFFF10.971.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003793
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3095;
/* rgb */ color: rgb(31, 48, 149);
/* oklch */ color: oklch(37.0% 0.165 268.8);
Tailwind
colors: {
  custom: {
    50: '#6f68b5',
    500: '#1f3095',
    950: '#000000',
  },
}
SCSS
$custom: #1f3095;
$custom-light: #6f68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3095",
  "rgb": {
    "r": 31,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 231.356,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37008,
    "c": 0.1652,
    "h": 268.8
  },
  "luminance": 0.04575
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3095

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

Preview Lab → · Contrast checker → · Palette generator →

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