#1F2695#1F2695

#1F2695 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.176 H 270.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1F2695
RGBrgb(31, 38, 149)
HSLhsl(236, 66%, 35%)
HSVhsv(236, 79%, 58%)
CMYKcmyk(79.2%, 74.5%, 0%, 41.6%)
CIE-LABlab(23.16, 37.57, -60.90)
CIE-LCHlch(23.16, 71.55, 301.67°)
OKLaboklab(35.33% 0.0016 -0.1763)
OKLCHoklch(35.33% 0.176 270.5)
XYZxyz(6.6812, 3.8467, 28.8183)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2695 #958E1F
analogous
#1F6195 #1F2695 #531F95
triadic
#1F2695 #951F26 #26951F
tetradic
#1F2695 #951F61 #958E1F #1F9553
square
#1F2695 #951F61 #958E1F #1F9553
split-complementary
#1F2695 #95531F #61951F
monochromatic
#0A0C30 #141962 #1F2695 #2A33C8 #535BDB

Accessibility & contrast

On white

11.87
#1F2695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2695
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2695#FFFFFF#000000##FFFFFF
##1F26951.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.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: #1f2695;
/* rgb */ color: rgb(31, 38, 149);
/* oklch */ color: oklch(35.3% 0.176 270.5);
Tailwind
colors: {
  custom: {
    50: '#7061b5',
    500: '#1f2695',
    950: '#000000',
  },
}
SCSS
$custom: #1f2695;
$custom-light: #7061b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2695",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 236.441,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.17636,
    "h": 270.5
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#1F2695
secondary
#BFB851
accent
#DE3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2695

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

Preview Lab → · Contrast checker → · Palette generator →

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