#1F3294#1F3294

#1F3294 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.161 H 268.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#1F3294
RGBrgb(31, 50, 148)
HSLhsl(230, 65%, 35%)
HSVhsv(230, 79%, 58%)
CMYKcmyk(79.1%, 66.2%, 0%, 42%)
CIE-LABlab(25.89, 29.51, -55.78)
CIE-LCHlch(25.89, 63.10, 297.88°)
OKLaboklab(37.28% -0.0044 -0.1614)
OKLCHoklch(37.28% 0.161 268.4)
XYZxyz(7.0491, 4.7098, 28.5488)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3294 #94811F
analogous
#1F6D94 #1F3294 #461F94
triadic
#1F3294 #941F32 #32941F
tetradic
#1F3294 #941F6D #94811F #1F9446
square
#1F3294 #941F6D #94811F #1F9446
split-complementary
#1F3294 #94461F #6D941F
monochromatic
#0A102F #142161 #1F3294 #2A43C7 #5369DB

Accessibility & contrast

On white

10.81
#1F3294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F3294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3294
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3294#FFFFFF#000000##FFFFFF
##1F32941.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003892
Tritanopia (blue-blind)
#004C5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3294;
/* rgb */ color: rgb(31, 50, 148);
/* oklch */ color: oklch(37.3% 0.161 268.4);
Tailwind
colors: {
  custom: {
    50: '#6f69b4',
    500: '#1f3294',
    950: '#000000',
  },
}
SCSS
$custom: #1f3294;
$custom-light: #6f69b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3294",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 148
  },
  "hsl": {
    "h": 230.256,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.16147,
    "h": 268.4
  },
  "luminance": 0.04711
}

Semantic roles & 50–950 ramp

primary
#1F3294
secondary
#BEAC51
accent
#CD3FE8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3294

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

Preview Lab → · Contrast checker → · Palette generator →

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