#1F2E95#1F2E95

#1F2E95 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.168 H 269.2°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#1F2E95
RGBrgb(31, 46, 149)
HSLhsl(232, 66%, 35%)
HSVhsv(232, 79%, 58%)
CMYKcmyk(79.2%, 69.1%, 0%, 41.6%)
CIE-LABlab(25.00, 32.52, -57.87)
CIE-LCHlch(25.00, 66.38, 299.34°)
OKLaboklab(36.65% -0.0023 -0.1675)
OKLCHoklch(36.65% 0.168 269.2)
XYZxyz(6.9650, 4.4144, 28.9129)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E95 #95861F
analogous
#1F6995 #1F2E95 #4B1F95
triadic
#1F2E95 #951F2E #2E951F
tetradic
#1F2E95 #951F69 #95861F #1F954B
square
#1F2E95 #951F69 #95861F #1F954B
split-complementary
#1F2E95 #954B1F #69951F
monochromatic
#0A0F30 #141E62 #1F2E95 #2A3EC8 #5364DB

Accessibility & contrast

On white

11.15
#1F2E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F2E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E95
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E95#FFFFFF#000000##FFFFFF
##1F2E951.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2e95;
/* rgb */ color: rgb(31, 46, 149);
/* oklch */ color: oklch(36.7% 0.168 269.2);
Tailwind
colors: {
  custom: {
    50: '#7067b5',
    500: '#1f2e95',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e95;
$custom-light: #7067b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e95",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 149
  },
  "hsl": {
    "h": 232.373,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36652,
    "c": 0.16755,
    "h": 269.2
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#1F2E95
secondary
#BFB151
accent
#D33FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2E95

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

Preview Lab → · Contrast checker → · Palette generator →

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