#1F2F95#1F2F95

#1F2F95 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.166 H 269.0°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#1F2F95
RGBrgb(31, 47, 149)
HSLhsl(232, 66%, 35%)
HSVhsv(232, 79%, 58%)
CMYKcmyk(79.2%, 68.5%, 0%, 41.6%)
CIE-LABlab(25.24, 31.87, -57.47)
CIE-LCHlch(25.24, 65.71, 299.01°)
OKLaboklab(36.83% -0.0028 -0.1664)
OKLCHoklch(36.83% 0.166 269)
XYZxyz(7.0045, 4.4935, 28.9261)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F95 #95851F
analogous
#1F6A95 #1F2F95 #4A1F95
triadic
#1F2F95 #951F2F #2F951F
tetradic
#1F2F95 #951F6A #95851F #1F954A
square
#1F2F95 #951F6A #95851F #1F954A
split-complementary
#1F2F95 #954A1F #6A951F
monochromatic
#0A0F30 #141F62 #1F2F95 #2A3FC8 #5366DB

Accessibility & contrast

On white

11.06
#1F2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F95
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F95#FFFFFF#000000##FFFFFF
##1F2F951.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2f95;
/* rgb */ color: rgb(31, 47, 149);
/* oklch */ color: oklch(36.8% 0.166 269.0);
Tailwind
colors: {
  custom: {
    50: '#7067b5',
    500: '#1f2f95',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f95;
$custom-light: #7067b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f95",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 231.864,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.16638,
    "h": 269
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#1F2F95
secondary
#BFB051
accent
#D23FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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