#1F249D#1F249D

#1F249D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.188 H 270.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F249D
RGBrgb(31, 36, 157)
HSLhsl(238, 67%, 37%)
HSVhsv(238, 80%, 62%)
CMYKcmyk(80.3%, 77.1%, 0%, 38.4%)
CIE-LABlab(23.63, 41.53, -65.03)
CIE-LCHlch(23.63, 77.16, 302.56°)
OKLaboklab(35.92% 0.001 -0.1883)
OKLCHoklch(35.92% 0.188 270.3)
XYZxyz(7.2797, 3.9866, 32.2776)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F249D #9D981F
analogous
#1F639D #1F249D #591F9D
triadic
#1F249D #9D1F24 #249D1F
tetradic
#1F249D #9D1F63 #9D981F #1F9D59
square
#1F249D #9D1F63 #9D981F #1F9D59
split-complementary
#1F249D #9D591F #639D1F
monochromatic
#0B0D37 #15186A #1F249D #2930D0 #585EDE

Accessibility & contrast

On white

11.68
#1F249D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F249D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F249D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F249D#FFFFFF#000000##FFFFFF
##1F249D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f249d;
/* rgb */ color: rgb(31, 36, 157);
/* oklch */ color: oklch(35.9% 0.188 270.3);
Tailwind
colors: {
  custom: {
    50: '#7360bb',
    500: '#1f249d',
    950: '#000000',
  },
}
SCSS
$custom: #1f249d;
$custom-light: #7360bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f249d",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 157
  },
  "hsl": {
    "h": 237.619,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35922,
    "c": 0.18835,
    "h": 270.3
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#1F249D
secondary
#C2BE56
accent
#E33EEA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F249D

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

Preview Lab → · Contrast checker → · Palette generator →

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