#1F4B95#1F4B95

#1F4B95 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.6% C 0.131 H 260.2°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#1F4B95
RGBrgb(31, 75, 149)
HSLhsl(218, 66%, 35%)
HSVhsv(218, 79%, 58%)
CMYKcmyk(79.2%, 49.7%, 0%, 41.6%)
CIE-LABlab(32.90, 12.84, -44.99)
CIE-LCHlch(32.90, 46.79, 285.93°)
OKLaboklab(42.57% -0.0223 -0.1293)
OKLCHoklch(42.57% 0.131 260.2)
XYZxyz(8.5040, 7.4924, 29.4259)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B95 #95691F
analogous
#1F8695 #1F4B95 #2E1F95
triadic
#1F4B95 #951F4B #4B951F
tetradic
#1F4B95 #951F86 #95691F #1F952E
square
#1F4B95 #951F86 #95691F #1F952E
split-complementary
#1F4B95 #952E1F #86951F
monochromatic
#0A1830 #143162 #1F4B95 #2A64C8 #5386DB

Accessibility & contrast

On white

8.40
#1F4B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F4B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B95
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B95#FFFFFF#000000##FFFFFF
##1F4B951.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205398
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005D69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4b95;
/* rgb */ color: rgb(31, 75, 149);
/* oklch */ color: oklch(42.6% 0.131 260.2);
Tailwind
colors: {
  custom: {
    50: '#6e7cb5',
    500: '#1f4b95',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b95;
$custom-light: #6e7cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b95",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 149
  },
  "hsl": {
    "h": 217.627,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42572,
    "c": 0.13124,
    "h": 260.2
  },
  "luminance": 0.07493
}

Semantic roles & 50–950 ramp

primary
#1F4B95
secondary
#BF9651
accent
#A93FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B95

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

Preview Lab → · Contrast checker → · Palette generator →

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