#1F2995#1F2995

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

Color values

HEX#1F2995
RGBrgb(31, 41, 149)
HSLhsl(235, 66%, 35%)
HSVhsv(235, 79%, 58%)
CMYKcmyk(79.2%, 72.5%, 0%, 41.6%)
CIE-LABlab(23.82, 35.72, -59.80)
CIE-LCHlch(23.82, 69.65, 300.85°)
OKLaboklab(35.8% 0.0002 -0.1732)
OKLCHoklch(35.8% 0.173 270.1)
XYZxyz(6.7810, 4.0464, 28.8516)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2995 #958B1F
analogous
#1F6495 #1F2995 #501F95
triadic
#1F2995 #951F29 #29951F
tetradic
#1F2995 #951F64 #958B1F #1F9550
square
#1F2995 #951F64 #958B1F #1F9550
split-complementary
#1F2995 #95501F #64951F
monochromatic
#0A0D30 #141B62 #1F2995 #2A37C8 #535FDB

Accessibility & contrast

On white

11.61
#1F2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2995
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2995#FFFFFF#000000##FFFFFF
##1F29951.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2995;
/* rgb */ color: rgb(31, 41, 149);
/* oklch */ color: oklch(35.8% 0.173 270.1);
Tailwind
colors: {
  custom: {
    50: '#7063b5',
    500: '#1f2995',
    950: '#000000',
  },
}
SCSS
$custom: #1f2995;
$custom-light: #7063b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2995",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 234.915,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35804,
    "c": 0.17316,
    "h": 270.1
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#1F2995
secondary
#BFB551
accent
#DA3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2995

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

Preview Lab → · Contrast checker → · Palette generator →

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