#1F2294#1F2294

#1F2294 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.179 H 271.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1F2294
RGBrgb(31, 34, 148)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 58%)
CMYKcmyk(79.1%, 77%, 0%, 42%)
CIE-LABlab(22.21, 39.59, -61.85)
CIE-LCHlch(22.21, 73.44, 302.62°)
OKLaboklab(34.62% 0.0034 -0.1791)
OKLCHoklch(34.62% 0.179 271.1)
XYZxyz(6.4806, 3.5728, 28.3593)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2294 #94911F
analogous
#1F5C94 #1F2294 #571F94
triadic
#1F2294 #941F22 #22941F
tetradic
#1F2294 #941F5C #94911F #1F9457
square
#1F2294 #941F5C #94911F #1F9457
split-complementary
#1F2294 #94571F #5C941F
monochromatic
#0A0B2F #141661 #1F2294 #2A2EC7 #5356DB

Accessibility & contrast

On white

12.25
#1F2294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2294
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2294#FFFFFF#000000##FFFFFF
##1F22941.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2294;
/* rgb */ color: rgb(31, 34, 148);
/* oklch */ color: oklch(34.6% 0.179 271.1);
Tailwind
colors: {
  custom: {
    50: '#715fb5',
    500: '#1f2294',
    950: '#000000',
  },
}
SCSS
$custom: #1f2294;
$custom-light: #715fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2294",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 238.462,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34617,
    "c": 0.17913,
    "h": 271.1
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#1F2294
secondary
#BEBB51
accent
#E43FE8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2294

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

Preview Lab → · Contrast checker → · Palette generator →

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