#1F2398#1F2398

#1F2398 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.183 H 270.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F2398
RGBrgb(31, 35, 152)
HSLhsl(238, 66%, 36%)
HSVhsv(238, 80%, 60%)
CMYKcmyk(79.6%, 77%, 0%, 40.4%)
CIE-LABlab(22.86, 40.39, -63.24)
CIE-LCHlch(22.86, 75.03, 302.57°)
OKLaboklab(35.21% 0.0023 -0.1831)
OKLCHoklch(35.21% 0.183 270.7)
XYZxyz(6.8317, 3.7596, 30.0653)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2398 #98941F
analogous
#1F5F98 #1F2398 #581F98
triadic
#1F2398 #981F23 #23981F
tetradic
#1F2398 #981F5F #98941F #1F9858
square
#1F2398 #981F5F #98941F #1F9858
split-complementary
#1F2398 #98581F #5F981F
monochromatic
#0A0C32 #151765 #1F2398 #292FCB #555ADC

Accessibility & contrast

On white

11.99
#1F2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2398
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2398#FFFFFF#000000##FFFFFF
##1F23981.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2398;
/* rgb */ color: rgb(31, 35, 152);
/* oklch */ color: oklch(35.2% 0.183 270.7);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#1f2398',
    950: '#000000',
  },
}
SCSS
$custom: #1f2398;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2398",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 238.017,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35214,
    "c": 0.18314,
    "h": 270.7
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#1F2398
secondary
#C0BC53
accent
#E33FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2398

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

Preview Lab → · Contrast checker → · Palette generator →

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