#1F249C#1F249C

#1F249C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.187 H 270.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#1F249C
RGBrgb(31, 36, 156)
HSLhsl(238, 67%, 37%)
HSVhsv(238, 80%, 61%)
CMYKcmyk(80.1%, 76.9%, 0%, 38.8%)
CIE-LABlab(23.51, 41.19, -64.61)
CIE-LCHlch(23.51, 76.62, 302.52°)
OKLaboklab(35.81% 0.0012 -0.1871)
OKLCHoklch(35.81% 0.187 270.4)
XYZxyz(7.1947, 3.9525, 31.8298)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F249C #9C971F
analogous
#1F639C #1F249C #591F9C
triadic
#1F249C #9C1F24 #249C1F
tetradic
#1F249C #9C1F63 #9C971F #1F9C59
square
#1F249C #9C1F63 #9C971F #1F9C59
split-complementary
#1F249C #9C591F #639C1F
monochromatic
#0B0C36 #151869 #1F249C #2930CF #585DDE

Accessibility & contrast

On white

11.73
#1F249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F249C
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F249C#FFFFFF#000000##FFFFFF
##1F249C1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f249c;
/* rgb */ color: rgb(31, 36, 156);
/* oklch */ color: oklch(35.8% 0.187 270.4);
Tailwind
colors: {
  custom: {
    50: '#7260ba',
    500: '#1f249c',
    950: '#000000',
  },
}
SCSS
$custom: #1f249c;
$custom-light: #7260ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f249c",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 237.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35809,
    "c": 0.18712,
    "h": 270.4
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F249C

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

Preview Lab → · Contrast checker → · Palette generator →

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