#1F2A95#1F2A95

#1F2A95 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.172 H 269.9°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#1F2A95
RGBrgb(31, 42, 149)
HSLhsl(234, 66%, 35%)
HSVhsv(234, 79%, 58%)
CMYKcmyk(79.2%, 71.8%, 0%, 41.6%)
CIE-LABlab(24.05, 35.09, -59.42)
CIE-LCHlch(24.05, 69.01, 300.56°)
OKLaboklab(35.97% -0.0002 -0.1721)
OKLCHoklch(35.97% 0.172 269.9)
XYZxyz(6.8160, 4.1164, 28.8633)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A95 #958A1F
analogous
#1F6595 #1F2A95 #4F1F95
triadic
#1F2A95 #951F2A #2A951F
tetradic
#1F2A95 #951F65 #958A1F #1F954F
square
#1F2A95 #951F65 #958A1F #1F954F
split-complementary
#1F2A95 #954F1F #65951F
monochromatic
#0A0D30 #141C62 #1F2A95 #2A38C8 #5360DB

Accessibility & contrast

On white

11.52
#1F2A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A95
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A95#FFFFFF#000000##FFFFFF
##1F2A951.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2a95;
/* rgb */ color: rgb(31, 42, 149);
/* oklch */ color: oklch(36.0% 0.172 269.9);
Tailwind
colors: {
  custom: {
    50: '#7064b5',
    500: '#1f2a95',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a95;
$custom-light: #7064b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a95",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 234.407,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.17207,
    "h": 269.9
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#1F2A95
secondary
#BFB451
accent
#D93FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2A95

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

Preview Lab → · Contrast checker → · Palette generator →

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