#1F2D96#1F2D96

#1F2D96 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.170 H 269.4°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#1F2D96
RGBrgb(31, 45, 150)
HSLhsl(233, 66%, 35%)
HSVhsv(233, 79%, 59%)
CMYKcmyk(79.3%, 70%, 0%, 41.2%)
CIE-LABlab(24.86, 33.54, -58.71)
CIE-LCHlch(24.86, 67.62, 299.74°)
OKLaboklab(36.58% -0.0018 -0.17)
OKLCHoklch(36.58% 0.17 269.4)
XYZxyz(7.0066, 4.3693, 29.3223)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D96 #96881F
analogous
#1F6896 #1F2D96 #4C1F96
triadic
#1F2D96 #961F2D #2D961F
tetradic
#1F2D96 #961F68 #96881F #1F964C
square
#1F2D96 #961F68 #96881F #1F964C
split-complementary
#1F2D96 #964C1F #68961F
monochromatic
#0A0F31 #151E63 #1F2D96 #293CC9 #5464DC

Accessibility & contrast

On white

11.21
#1F2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2D96
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D96#FFFFFF#000000##FFFFFF
##1F2D961.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2d96;
/* rgb */ color: rgb(31, 45, 150);
/* oklch */ color: oklch(36.6% 0.170 269.4);
Tailwind
colors: {
  custom: {
    50: '#7066b6',
    500: '#1f2d96',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d96;
$custom-light: #7066b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d96",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 232.941,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3658,
    "c": 0.17001,
    "h": 269.4
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#1F2D96
secondary
#BFB252
accent
#D53FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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