#1F2895#1F2895

#1F2895 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.174 H 270.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#1F2895
RGBrgb(31, 40, 149)
HSLhsl(235, 66%, 35%)
HSVhsv(235, 79%, 58%)
CMYKcmyk(79.2%, 73.2%, 0%, 41.6%)
CIE-LABlab(23.60, 36.34, -60.17)
CIE-LCHlch(23.60, 70.29, 301.13°)
OKLaboklab(35.64% 0.0007 -0.1742)
OKLCHoklch(35.64% 0.174 270.2)
XYZxyz(6.7468, 3.9781, 28.8402)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2895 #958C1F
analogous
#1F6395 #1F2895 #511F95
triadic
#1F2895 #951F28 #28951F
tetradic
#1F2895 #951F63 #958C1F #1F9551
square
#1F2895 #951F63 #958C1F #1F9551
split-complementary
#1F2895 #95511F #63951F
monochromatic
#0A0D30 #141A62 #1F2895 #2A36C8 #535EDB

Accessibility & contrast

On white

11.69
#1F2895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2895
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2895#FFFFFF#000000##FFFFFF
##1F28951.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2895;
/* rgb */ color: rgb(31, 40, 149);
/* oklch */ color: oklch(35.6% 0.174 270.2);
Tailwind
colors: {
  custom: {
    50: '#7063b5',
    500: '#1f2895',
    950: '#000000',
  },
}
SCSS
$custom: #1f2895;
$custom-light: #7063b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2895",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 235.424,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35643,
    "c": 0.17424,
    "h": 270.2
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#1F2895
secondary
#BFB651
accent
#DC3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2895

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

Preview Lab → · Contrast checker → · Palette generator →

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