#1F48A4#1F48A4

#1F48A4 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.156 H 263.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#1F48A4
RGBrgb(31, 72, 164)
HSLhsl(222, 68%, 38%)
HSVhsv(222, 81%, 64%)
CMYKcmyk(81.1%, 56.1%, 0%, 35.7%)
CIE-LABlab(33.15, 20.86, -53.66)
CIE-LCHlch(33.15, 57.57, 291.24°)
OKLaboklab(43.11% -0.0183 -0.1549)
OKLCHoklch(43.11% 0.156 263.3)
XYZxyz(9.5809, 7.6052, 36.0778)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F48A4 #A47B1F
analogous
#1F8AA4 #1F48A4 #391FA4
triadic
#1F48A4 #A41F48 #48A41F
tetradic
#1F48A4 #A41F8A #A47B1F #1FA439
square
#1F48A4 #A41F8A #A47B1F #1FA439
split-complementary
#1F48A4 #A4391F #8AA41F
monochromatic
#0C1B3D #153171 #1F48A4 #2A5FD7 #5D86E0

Accessibility & contrast

On white

8.33
#1F48A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#1F48A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F48A4
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F48A4#FFFFFF#000000##FFFFFF
##1F48A41.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#005F6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f48a4;
/* rgb */ color: rgb(31, 72, 164);
/* oklch */ color: oklch(43.1% 0.156 263.3);
Tailwind
colors: {
  custom: {
    50: '#717ac0',
    500: '#1f48a4',
    950: '#000000',
  },
}
SCSS
$custom: #1f48a4;
$custom-light: #717ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f48a4",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 164
  },
  "hsl": {
    "h": 221.504,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.43109,
    "c": 0.15596,
    "h": 263.3
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#1F48A4
secondary
#C5A45A
accent
#B53DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F48A4

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

Preview Lab → · Contrast checker → · Palette generator →

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