#1F249E#1F249E

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

Color values

HEX#1F249E
RGBrgb(31, 36, 158)
HSLhsl(238, 67%, 37%)
HSVhsv(238, 80%, 62%)
CMYKcmyk(80.4%, 77.2%, 0%, 38%)
CIE-LABlab(23.74, 41.87, -65.46)
CIE-LCHlch(23.74, 77.71, 302.61°)
OKLaboklab(36.04% 0.0009 -0.1896)
OKLCHoklch(36.04% 0.19 270.3)
XYZxyz(7.3654, 4.0208, 32.7290)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F249E #9E991F
analogous
#1F649E #1F249E #5A1F9E
triadic
#1F249E #9E1F24 #249E1F
tetradic
#1F249E #9E1F64 #9E991F #1F9E5A
square
#1F249E #9E1F64 #9E991F #1F9E5A
split-complementary
#1F249E #9E5A1F #649E1F
monochromatic
#0B0D38 #15186B #1F249E #2930D1 #595EDE

Accessibility & contrast

On white

11.64
#1F249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F249E
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F249E#FFFFFF#000000##FFFFFF
##1F249E1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f249e;
/* rgb */ color: rgb(31, 36, 158);
/* oklch */ color: oklch(36.0% 0.190 270.3);
Tailwind
colors: {
  custom: {
    50: '#7360bc',
    500: '#1f249e',
    950: '#000000',
  },
}
SCSS
$custom: #1f249e;
$custom-light: #7360bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f249e",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 237.638,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36036,
    "c": 0.18958,
    "h": 270.3
  },
  "luminance": 0.04022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F249E

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

Preview Lab → · Contrast checker → · Palette generator →

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