#1F2498#1F2498

#1F2498 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.182 H 270.6°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#1F2498
RGBrgb(31, 36, 152)
HSLhsl(238, 66%, 36%)
HSVhsv(238, 80%, 60%)
CMYKcmyk(79.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(23.06, 39.81, -62.90)
CIE-LCHlch(23.06, 74.44, 302.33°)
OKLaboklab(35.36% 0.0019 -0.1821)
OKLCHoklch(35.36% 0.182 270.6)
XYZxyz(6.8615, 3.8193, 30.0752)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2498 #98931F
analogous
#1F6098 #1F2498 #561F98
triadic
#1F2498 #981F24 #24981F
tetradic
#1F2498 #981F60 #98931F #1F9856
square
#1F2498 #981F60 #98931F #1F9856
split-complementary
#1F2498 #98561F #60981F
monochromatic
#0A0C32 #151865 #1F2498 #2930CB #555BDC

Accessibility & contrast

On white

11.90
#1F2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2498
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2498#FFFFFF#000000##FFFFFF
##1F24981.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2498;
/* rgb */ color: rgb(31, 36, 152);
/* oklch */ color: oklch(35.4% 0.182 270.6);
Tailwind
colors: {
  custom: {
    50: '#7160b8',
    500: '#1f2498',
    950: '#000000',
  },
}
SCSS
$custom: #1f2498;
$custom-light: #7160b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2498",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 237.521,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35359,
    "c": 0.18216,
    "h": 270.6
  },
  "luminance": 0.0382
}

Semantic roles & 50–950 ramp

primary
#1F2498
secondary
#C0BB53
accent
#E23FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2498

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

Preview Lab → · Contrast checker → · Palette generator →

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