#1F248D#1F248D

#1F248D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.168 H 271.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1F248D
RGBrgb(31, 36, 141)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(78%, 74.5%, 0%, 44.7%)
CIE-LABlab(21.86, 35.94, -58.09)
CIE-LCHlch(21.86, 68.31, 301.74°)
OKLaboklab(34.14% 0.0037 -0.1682)
OKLCHoklch(34.14% 0.168 271.3)
XYZxyz(6.0020, 3.4755, 25.5487)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F248D #8D881F
analogous
#1F5B8D #1F248D #511F8D
triadic
#1F248D #8D1F24 #248D1F
tetradic
#1F248D #8D1F5B #8D881F #1F8D51
square
#1F248D #8D1F5B #8D881F #1F8D51
split-complementary
#1F248D #8D511F #5B8D1F
monochromatic
#090A29 #14175B #1F248D #2A31BF #4E55D8

Accessibility & contrast

On white

12.39
#1F248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F248D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F248D#FFFFFF#000000##FFFFFF
##1F248D1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f248d;
/* rgb */ color: rgb(31, 36, 141);
/* oklch */ color: oklch(34.1% 0.168 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f60af',
    500: '#1f248d',
    950: '#000000',
  },
}
SCSS
$custom: #1f248d;
$custom-light: #6f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f248d",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 237.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34139,
    "c": 0.16821,
    "h": 271.3
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#1F248D
secondary
#BBB64D
accent
#DF41E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F248D

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

Preview Lab → · Contrast checker → · Palette generator →

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