#1F2994#1F2994

#1F2994 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.172 H 270.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1F2994
RGBrgb(31, 41, 148)
HSLhsl(235, 65%, 35%)
HSVhsv(235, 79%, 58%)
CMYKcmyk(79.1%, 72.3%, 0%, 42%)
CIE-LABlab(23.72, 35.36, -59.35)
CIE-LCHlch(23.72, 69.09, 300.78°)
OKLaboklab(35.7% 0.0004 -0.1719)
OKLCHoklch(35.7% 0.172 270.1)
XYZxyz(6.7015, 4.0146, 28.4329)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2994 #948A1F
analogous
#1F6394 #1F2994 #501F94
triadic
#1F2994 #941F29 #29941F
tetradic
#1F2994 #941F63 #948A1F #1F9450
square
#1F2994 #941F63 #948A1F #1F9450
split-complementary
#1F2994 #94501F #63941F
monochromatic
#0A0D2F #141B61 #1F2994 #2A37C7 #535EDB

Accessibility & contrast

On white

11.65
#1F2994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2994
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2994#FFFFFF#000000##FFFFFF
##1F29941.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2994;
/* rgb */ color: rgb(31, 41, 148);
/* oklch */ color: oklch(35.7% 0.172 270.1);
Tailwind
colors: {
  custom: {
    50: '#7063b5',
    500: '#1f2994',
    950: '#000000',
  },
}
SCSS
$custom: #1f2994;
$custom-light: #7063b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2994",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 148
  },
  "hsl": {
    "h": 234.872,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.17187,
    "h": 270.1
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#1F2994
secondary
#BEB551
accent
#DA3FE8
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2994

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

Preview Lab → · Contrast checker → · Palette generator →

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