#1F248F#1F248F

#1F248F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.171 H 271.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#1F248F
RGBrgb(31, 36, 143)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 56%)
CMYKcmyk(78.3%, 74.8%, 0%, 43.9%)
CIE-LABlab(22.07, 36.65, -58.98)
CIE-LCHlch(22.07, 69.44, 301.86°)
OKLaboklab(34.36% 0.0034 -0.1708)
OKLCHoklch(34.36% 0.171 271.1)
XYZxyz(6.1522, 3.5356, 26.3395)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F248F #8F8A1F
analogous
#1F5C8F #1F248F #521F8F
triadic
#1F248F #8F1F24 #248F1F
tetradic
#1F248F #8F1F5C #8F8A1F #1F8F52
square
#1F248F #8F1F5C #8F8A1F #1F8F52
split-complementary
#1F248F #8F521F #5C8F1F
monochromatic
#090B2A #14175D #1F248F #2A31C1 #4F56D9

Accessibility & contrast

On white

12.30
#1F248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F248F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F248F#FFFFFF#000000##FFFFFF
##1F248F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f248f;
/* rgb */ color: rgb(31, 36, 143);
/* oklch */ color: oklch(34.4% 0.171 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f60b1',
    500: '#1f248f',
    950: '#000000',
  },
}
SCSS
$custom: #1f248f;
$custom-light: #6f60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f248f",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 237.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34359,
    "c": 0.17078,
    "h": 271.1
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#1F248F
secondary
#BCB74E
accent
#E040E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F248F

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

Preview Lab → · Contrast checker → · Palette generator →

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