#1F2296#1F2296

#1F2296 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.182 H 270.9°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#1F2296
RGBrgb(31, 34, 150)
HSLhsl(238, 66%, 35%)
HSVhsv(238, 79%, 59%)
CMYKcmyk(79.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(22.43, 40.28, -62.71)
CIE-LCHlch(22.43, 74.53, 302.71°)
OKLaboklab(34.84% 0.003 -0.1816)
OKLCHoklch(34.84% 0.182 270.9)
XYZxyz(6.6403, 3.6366, 29.2002)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2296 #96931F
analogous
#1F5E96 #1F2296 #571F96
triadic
#1F2296 #961F22 #22961F
tetradic
#1F2296 #961F5E #96931F #1F9657
square
#1F2296 #961F5E #96931F #1F9657
split-complementary
#1F2296 #96571F #5E961F
monochromatic
#0A0B31 #151763 #1F2296 #292DC9 #5457DC

Accessibility & contrast

On white

12.16
#1F2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2296
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2296#FFFFFF#000000##FFFFFF
##1F22961.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2296;
/* rgb */ color: rgb(31, 34, 150);
/* oklch */ color: oklch(34.8% 0.182 270.9);
Tailwind
colors: {
  custom: {
    50: '#715fb6',
    500: '#1f2296',
    950: '#000000',
  },
}
SCSS
$custom: #1f2296;
$custom-light: #715fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2296",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 238.487,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.18162,
    "h": 270.9
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#1F2296
secondary
#BFBC52
accent
#E43FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2296

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

Preview Lab → · Contrast checker → · Palette generator →

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