#1F2595#1F2595

#1F2595 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.177 H 270.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#1F2595
RGBrgb(31, 37, 149)
HSLhsl(237, 66%, 35%)
HSVhsv(237, 79%, 58%)
CMYKcmyk(79.2%, 75.2%, 0%, 41.6%)
CIE-LABlab(22.94, 38.17, -61.25)
CIE-LCHlch(22.94, 72.17, 301.93°)
OKLaboklab(35.17% 0.002 -0.1774)
OKLCHoklch(35.17% 0.177 270.6)
XYZxyz(6.6496, 3.7836, 28.8078)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2595 #958F1F
analogous
#1F6095 #1F2595 #541F95
triadic
#1F2595 #951F25 #25951F
tetradic
#1F2595 #951F60 #958F1F #1F9554
square
#1F2595 #951F60 #958F1F #1F9554
split-complementary
#1F2595 #95541F #60951F
monochromatic
#0A0C30 #141862 #1F2595 #2A32C8 #535ADB

Accessibility & contrast

On white

11.95
#1F2595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2595
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2595#FFFFFF#000000##FFFFFF
##1F25951.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2595;
/* rgb */ color: rgb(31, 37, 149);
/* oklch */ color: oklch(35.2% 0.177 270.6);
Tailwind
colors: {
  custom: {
    50: '#7161b5',
    500: '#1f2595',
    950: '#000000',
  },
}
SCSS
$custom: #1f2595;
$custom-light: #7161b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2595",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 236.949,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.17739,
    "h": 270.6
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#1F2595
secondary
#BFB951
accent
#E03FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2595

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

Preview Lab → · Contrast checker → · Palette generator →

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