#1F248C#1F248C

#1F248C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.167 H 271.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F248C
RGBrgb(31, 36, 140)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(77.9%, 74.3%, 0%, 45.1%)
CIE-LABlab(21.75, 35.58, -57.64)
CIE-LCHlch(21.75, 67.74, 301.68°)
OKLaboklab(34.03% 0.0039 -0.1669)
OKLCHoklch(34.03% 0.167 271.3)
XYZxyz(5.9280, 3.4459, 25.1586)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F248C #8C871F
analogous
#1F5A8C #1F248C #501F8C
triadic
#1F248C #8C1F24 #248C1F
tetradic
#1F248C #8C1F5A #8C871F #1F8C50
square
#1F248C #8C1F5A #8C871F #1F8C50
split-complementary
#1F248C #8C501F #5A8C1F
monochromatic
#090A28 #14175A #1F248C #2A31BE #4E54D8

Accessibility & contrast

On white

12.43
#1F248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F248C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F248C#FFFFFF#000000##FFFFFF
##1F248C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f248c;
/* rgb */ color: rgb(31, 36, 140);
/* oklch */ color: oklch(34.0% 0.167 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e60af',
    500: '#1f248c',
    950: '#000000',
  },
}
SCSS
$custom: #1f248c;
$custom-light: #6e60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f248c",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 237.248,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3403,
    "c": 0.16692,
    "h": 271.3
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#1F248C
secondary
#BBB54C
accent
#DF41E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F248C

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

Preview Lab → · Contrast checker → · Palette generator →

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