#1F48B2#1F48B2

#1F48B2 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.3% C 0.175 H 264.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#1F48B2
RGBrgb(31, 72, 178)
HSLhsl(223, 70%, 41%)
HSVhsv(223, 83%, 70%)
CMYKcmyk(82.6%, 59.6%, 0%, 30.2%)
CIE-LABlab(34.27, 26.35, -60.18)
CIE-LCHlch(34.27, 65.70, 293.65°)
OKLaboklab(44.31% -0.0175 -0.174)
OKLCHoklch(44.31% 0.175 264.3)
XYZxyz(10.9155, 8.1391, 43.1065)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F48B2 #B2891F
analogous
#1F91B2 #1F48B2 #3F1FB2
triadic
#1F48B2 #B21F48 #48B21F
tetradic
#1F48B2 #B21F91 #B2891F #1FB23F
square
#1F48B2 #B21F91 #B2891F #1FB23F
split-complementary
#1F48B2 #B23F1F #91B21F
monochromatic
#0D1E4A #16337E #1F48B2 #3362DB #678AE5

Accessibility & contrast

On white

7.99
#1F48B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1F48B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F48B2
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F48B2#FFFFFF#000000##FFFFFF
##1F48B21.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f48b2;
/* rgb */ color: rgb(31, 72, 178);
/* oklch */ color: oklch(44.3% 0.175 264.3);
Tailwind
colors: {
  custom: {
    50: '#757aca',
    500: '#1f48b2',
    950: '#000000',
  },
}
SCSS
$custom: #1f48b2;
$custom-light: #757aca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f48b2",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 223.265,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44305,
    "c": 0.17491,
    "h": 264.3
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#1F48B2
secondary
#CAAD63
accent
#BB3BED
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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