#1F2D95#1F2D95

#1F2D95 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.169 H 269.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#1F2D95
RGBrgb(31, 45, 149)
HSLhsl(233, 66%, 35%)
HSVhsv(233, 79%, 58%)
CMYKcmyk(79.2%, 69.8%, 0%, 41.6%)
CIE-LABlab(24.76, 33.17, -58.26)
CIE-LCHlch(24.76, 67.04, 299.66°)
OKLaboklab(36.48% -0.0017 -0.1687)
OKLCHoklch(36.48% 0.169 269.4)
XYZxyz(6.9264, 4.3372, 28.9001)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D95 #95871F
analogous
#1F6895 #1F2D95 #4C1F95
triadic
#1F2D95 #951F2D #2D951F
tetradic
#1F2D95 #951F68 #95871F #1F954C
square
#1F2D95 #951F68 #95871F #1F954C
split-complementary
#1F2D95 #954C1F #68951F
monochromatic
#0A0E30 #141E62 #1F2D95 #2A3CC8 #5363DB

Accessibility & contrast

On white

11.24
#1F2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D95
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D95#FFFFFF#000000##FFFFFF
##1F2D951.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d95;
/* rgb */ color: rgb(31, 45, 149);
/* oklch */ color: oklch(36.5% 0.169 269.4);
Tailwind
colors: {
  custom: {
    50: '#7066b5',
    500: '#1f2d95',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d95;
$custom-light: #7066b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d95",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 232.881,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36478,
    "c": 0.1687,
    "h": 269.4
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#1F2D95
secondary
#BFB251
accent
#D43FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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