#1F248A#1F248A

#1F248A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.164 H 271.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#1F248A
RGBrgb(31, 36, 138)
HSLhsl(237, 63%, 33%)
HSVhsv(237, 78%, 54%)
CMYKcmyk(77.5%, 73.9%, 0%, 45.9%)
CIE-LABlab(21.53, 34.86, -56.75)
CIE-LCHlch(21.53, 66.60, 301.56°)
OKLaboklab(33.81% 0.0042 -0.1643)
OKLCHoklch(33.81% 0.164 271.5)
XYZxyz(5.7818, 3.3874, 24.3889)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F248A #8A851F
analogous
#1F598A #1F248A #4F1F8A
triadic
#1F248A #8A1F24 #248A1F
tetradic
#1F248A #8A1F59 #8A851F #1F8A4F
square
#1F248A #8A1F59 #8A851F #1F8A4F
split-complementary
#1F248A #8A4F1F #598A1F
monochromatic
#090A26 #141758 #1F248A #2A31BC #4C53D7

Accessibility & contrast

On white

12.52
#1F248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F248A
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F248A#FFFFFF#000000##FFFFFF
##1F248A1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f248a;
/* rgb */ color: rgb(31, 36, 138);
/* oklch */ color: oklch(33.8% 0.164 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e5fad',
    500: '#1f248a',
    950: '#000000',
  },
}
SCSS
$custom: #1f248a;
$custom-light: #6e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f248a",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 237.196,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33813,
    "c": 0.16432,
    "h": 271.5
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#1F248A
secondary
#BAB44B
accent
#DF41E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F248A

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

Preview Lab → · Contrast checker → · Palette generator →

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