#1F248B#1F248B

#1F248B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.166 H 271.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1F248B
RGBrgb(31, 36, 139)
HSLhsl(237, 64%, 33%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(77.7%, 74.1%, 0%, 45.5%)
CIE-LABlab(21.64, 35.22, -57.20)
CIE-LCHlch(21.64, 67.17, 301.62°)
OKLaboklab(33.92% 0.004 -0.1656)
OKLCHoklch(33.92% 0.166 271.4)
XYZxyz(5.8546, 3.4165, 24.7720)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F248B #8B861F
analogous
#1F5A8B #1F248B #501F8B
triadic
#1F248B #8B1F24 #248B1F
tetradic
#1F248B #8B1F5A #8B861F #1F8B50
square
#1F248B #8B1F5A #8B861F #1F8B50
split-complementary
#1F248B #8B501F #5A8B1F
monochromatic
#090A27 #141759 #1F248B #2A31BD #4D53D7

Accessibility & contrast

On white

12.47
#1F248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F248B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F248B#FFFFFF#000000##FFFFFF
##1F248B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f248b;
/* rgb */ color: rgb(31, 36, 139);
/* oklch */ color: oklch(33.9% 0.166 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e60ae',
    500: '#1f248b',
    950: '#000000',
  },
}
SCSS
$custom: #1f248b;
$custom-light: #6e60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f248b",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 237.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33921,
    "c": 0.16563,
    "h": 271.4
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#1F248B
secondary
#BAB54C
accent
#DF41E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F248B

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

Preview Lab → · Contrast checker → · Palette generator →

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