#1F2298#1F2298

#1F2298 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.184 H 270.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#1F2298
RGBrgb(31, 34, 152)
HSLhsl(239, 66%, 36%)
HSVhsv(239, 80%, 60%)
CMYKcmyk(79.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(22.66, 40.96, -63.57)
CIE-LCHlch(22.66, 75.62, 302.80°)
OKLaboklab(35.07% 0.0026 -0.1841)
OKLCHoklch(35.07% 0.184 270.8)
XYZxyz(6.8027, 3.7016, 30.0556)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2298 #98951F
analogous
#1F5E98 #1F2298 #581F98
triadic
#1F2298 #981F22 #22981F
tetradic
#1F2298 #981F5E #98951F #1F9858
square
#1F2298 #981F5E #98951F #1F9858
split-complementary
#1F2298 #98581F #5E981F
monochromatic
#0A0B32 #151765 #1F2298 #292DCB #5558DC

Accessibility & contrast

On white

12.07
#1F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2298
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2298#FFFFFF#000000##FFFFFF
##1F22981.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2298;
/* rgb */ color: rgb(31, 34, 152);
/* oklch */ color: oklch(35.1% 0.184 270.8);
Tailwind
colors: {
  custom: {
    50: '#725fb8',
    500: '#1f2298',
    950: '#000000',
  },
}
SCSS
$custom: #1f2298;
$custom-light: #725fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2298",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 238.512,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35072,
    "c": 0.1841,
    "h": 270.8
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#1F2298
secondary
#C0BD53
accent
#E53FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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