#1F249A#1F249A

#1F249A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.185 H 270.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#1F249A
RGBrgb(31, 36, 154)
HSLhsl(238, 66%, 36%)
HSVhsv(238, 80%, 60%)
CMYKcmyk(79.9%, 76.6%, 0%, 39.6%)
CIE-LABlab(23.29, 40.50, -63.76)
CIE-LCHlch(23.29, 75.53, 302.43°)
OKLaboklab(35.58% 0.0016 -0.1846)
OKLCHoklch(35.58% 0.185 270.5)
XYZxyz(7.0267, 3.8854, 30.9452)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F249A #9A951F
analogous
#1F629A #1F249A #581F9A
triadic
#1F249A #9A1F24 #249A1F
tetradic
#1F249A #9A1F62 #9A951F #1F9A58
square
#1F249A #9A1F62 #9A951F #1F9A58
split-complementary
#1F249A #9A581F #629A1F
monochromatic
#0A0C34 #151867 #1F249A #2930CD #565CDD

Accessibility & contrast

On white

11.82
#1F249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F249A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F249A#FFFFFF#000000##FFFFFF
##1F249A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f249a;
/* rgb */ color: rgb(31, 36, 154);
/* oklch */ color: oklch(35.6% 0.185 270.5);
Tailwind
colors: {
  custom: {
    50: '#7260b9',
    500: '#1f249a',
    950: '#000000',
  },
}
SCSS
$custom: #1f249a;
$custom-light: #7260b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f249a",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 237.561,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35583,
    "c": 0.18465,
    "h": 270.5
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#1F249A
secondary
#C1BC54
accent
#E23EE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F249A

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

Preview Lab → · Contrast checker → · Palette generator →

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