#1F2394#1F2394

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

Color values

HEX#1F2394
RGBrgb(31, 35, 148)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 58%)
CMYKcmyk(79.1%, 76.4%, 0%, 42%)
CIE-LABlab(22.41, 39.00, -61.51)
CIE-LCHlch(22.41, 72.84, 302.38°)
OKLaboklab(34.76% 0.003 -0.1781)
OKLCHoklch(34.76% 0.178 271)
XYZxyz(6.5096, 3.6308, 28.3690)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2394 #94901F
analogous
#1F5D94 #1F2394 #561F94
triadic
#1F2394 #941F23 #23941F
tetradic
#1F2394 #941F5D #94901F #1F9456
square
#1F2394 #941F5D #94901F #1F9456
split-complementary
#1F2394 #94561F #5D941F
monochromatic
#0A0B2F #141761 #1F2394 #2A2FC7 #5357DB

Accessibility & contrast

On white

12.17
#1F2394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2394
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2394#FFFFFF#000000##FFFFFF
##1F23941.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2394;
/* rgb */ color: rgb(31, 35, 148);
/* oklch */ color: oklch(34.8% 0.178 271.0);
Tailwind
colors: {
  custom: {
    50: '#705fb5',
    500: '#1f2394',
    950: '#000000',
  },
}
SCSS
$custom: #1f2394;
$custom-light: #705fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2394",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 237.949,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34763,
    "c": 0.17814,
    "h": 271
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#1F2394
secondary
#BEBA51
accent
#E33FE8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2394

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

Preview Lab → · Contrast checker → · Palette generator →

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