#1F2D90#1F2D90

#1F2D90 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.162 H 269.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#1F2D90
RGBrgb(31, 45, 144)
HSLhsl(233, 65%, 34%)
HSVhsv(233, 78%, 56%)
CMYKcmyk(78.5%, 68.7%, 0%, 43.5%)
CIE-LABlab(24.26, 31.31, -55.99)
CIE-LCHlch(24.26, 64.15, 299.21°)
OKLaboklab(35.97% -0.0013 -0.1621)
OKLCHoklch(35.97% 0.162 269.5)
XYZxyz(6.5358, 4.1810, 26.8427)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D90 #90821F
analogous
#1F6690 #1F2D90 #491F90
triadic
#1F2D90 #901F2D #2D901F
tetradic
#1F2D90 #901F66 #90821F #1F9049
square
#1F2D90 #901F66 #90821F #1F9049
split-complementary
#1F2D90 #90491F #66901F
monochromatic
#090E2B #141D5E #1F2D90 #2A3DC2 #5061D9

Accessibility & contrast

On white

11.44
#1F2D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D90
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D90#FFFFFF#000000##FFFFFF
##1F2D901.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2d90;
/* rgb */ color: rgb(31, 45, 144);
/* oklch */ color: oklch(36.0% 0.162 269.5);
Tailwind
colors: {
  custom: {
    50: '#6e66b2',
    500: '#1f2d90',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d90;
$custom-light: #6e66b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d90",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 232.566,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35967,
    "c": 0.16207,
    "h": 269.5
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#1F2D90
secondary
#BCAF4E
accent
#D340E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F2D90

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

Preview Lab → · Contrast checker → · Palette generator →

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