#1F2297#1F2297

#1F2297 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.183 H 270.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1F2297
RGBrgb(31, 34, 151)
HSLhsl(239, 66%, 36%)
HSVhsv(239, 79%, 59%)
CMYKcmyk(79.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.55, 40.62, -63.14)
CIE-LCHlch(22.55, 75.08, 302.75°)
OKLaboklab(34.96% 0.0028 -0.1828)
OKLCHoklch(34.96% 0.183 270.9)
XYZxyz(6.7211, 3.6690, 29.6261)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2297 #97941F
analogous
#1F5E97 #1F2297 #581F97
triadic
#1F2297 #971F22 #22971F
tetradic
#1F2297 #971F5E #97941F #1F9758
square
#1F2297 #971F5E #97941F #1F9758
split-complementary
#1F2297 #97581F #5E971F
monochromatic
#0A0B31 #151764 #1F2297 #292DCA #5458DC

Accessibility & contrast

On white

12.11
#1F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2297
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2297#FFFFFF#000000##FFFFFF
##1F22971.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2297;
/* rgb */ color: rgb(31, 34, 151);
/* oklch */ color: oklch(35.0% 0.183 270.9);
Tailwind
colors: {
  custom: {
    50: '#715fb7',
    500: '#1f2297',
    950: '#000000',
  },
}
SCSS
$custom: #1f2297;
$custom-light: #715fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2297",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 238.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34958,
    "c": 0.18286,
    "h": 270.9
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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