#1F4294#1F4294

#1F4294 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.141 H 263.8°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4294
RGBrgb(31, 66, 148)
HSLhsl(222, 65%, 35%)
HSVhsv(222, 79%, 58%)
CMYKcmyk(79.1%, 55.4%, 0%, 42%)
CIE-LABlab(30.22, 18.59, -48.72)
CIE-LCHlch(30.22, 52.15, 290.88°)
OKLaboklab(40.5% -0.0153 -0.1405)
OKLCHoklch(40.5% 0.141 263.8)
XYZxyz(7.8567, 6.3250, 28.8180)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4294 #94711F
analogous
#1F7D94 #1F4294 #361F94
triadic
#1F4294 #941F42 #42941F
tetradic
#1F4294 #941F7D #94711F #1F9436
square
#1F4294 #941F7D #94711F #1F9436
split-complementary
#1F4294 #94361F #7D941F
monochromatic
#0A152F #142B61 #1F4294 #2A59C7 #537BDB

Accessibility & contrast

On white

9.27
#1F4294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F4294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4294
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4294#FFFFFF#000000##FFFFFF
##1F42941.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4294;
/* rgb */ color: rgb(31, 66, 148);
/* oklch */ color: oklch(40.5% 0.141 263.8);
Tailwind
colors: {
  custom: {
    50: '#6e75b4',
    500: '#1f4294',
    950: '#000000',
  },
}
SCSS
$custom: #1f4294;
$custom-light: #6e75b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4294",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 148
  },
  "hsl": {
    "h": 222.051,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40503,
    "c": 0.14131,
    "h": 263.8
  },
  "luminance": 0.06326
}

Semantic roles & 50–950 ramp

primary
#1F4294
secondary
#BE9D51
accent
#B63FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4294

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

Preview Lab → · Contrast checker → · Palette generator →

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