#1F249F#1F249F

#1F249F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.191 H 270.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#1F249F
RGBrgb(31, 36, 159)
HSLhsl(238, 67%, 37%)
HSVhsv(238, 81%, 62%)
CMYKcmyk(80.5%, 77.4%, 0%, 37.6%)
CIE-LABlab(23.85, 42.22, -65.88)
CIE-LCHlch(23.85, 78.24, 302.65°)
OKLaboklab(36.15% 0.0007 -0.1908)
OKLCHoklch(36.15% 0.191 270.2)
XYZxyz(7.4518, 4.0554, 33.1842)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F249F #9F9A1F
analogous
#1F649F #1F249F #5A1F9F
triadic
#1F249F #9F1F24 #249F1F
tetradic
#1F249F #9F1F64 #9F9A1F #1F9F5A
square
#1F249F #9F1F64 #9F9A1F #1F9F5A
split-complementary
#1F249F #9F5A1F #649F1F
monochromatic
#0B0D39 #15186C #1F249F #2930D2 #5A5FDF

Accessibility & contrast

On white

11.59
#1F249F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F249F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F249F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F249F#FFFFFF#000000##FFFFFF
##1F249F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f249f;
/* rgb */ color: rgb(31, 36, 159);
/* oklch */ color: oklch(36.1% 0.191 270.2);
Tailwind
colors: {
  custom: {
    50: '#7361bd',
    500: '#1f249f',
    950: '#000000',
  },
}
SCSS
$custom: #1f249f;
$custom-light: #7361bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f249f",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 159
  },
  "hsl": {
    "h": 237.656,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36149,
    "c": 0.19081,
    "h": 270.2
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#1F249F
secondary
#C3BF57
accent
#E43EEA
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F249F

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

Preview Lab → · Contrast checker → · Palette generator →

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