#1F2D5D#1F2D5D

#1F2D5D is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.087 H 268.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#1F2D5D
RGBrgb(31, 45, 93)
HSLhsl(226, 50%, 24%)
HSVhsv(226, 67%, 36%)
CMYKcmyk(66.7%, 51.6%, 0%, 63.5%)
CIE-LABlab(19.88, 11.37, -30.56)
CIE-LCHlch(19.88, 32.61, 290.41°)
OKLaboklab(31.34% -0.0019 -0.0874)
OKLCHoklch(31.34% 0.087 268.7)
XYZxyz(3.4786, 2.9581, 10.7415)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D5D #5D4F1F
analogous
#1F4C5D #1F2D5D #301F5D
triadic
#1F2D5D #5D1F2D #2D5D1F
tetradic
#1F2D5D #5D1F4C #5D4F1F #1F5D30
square
#1F2D5D #5D1F4C #5D4F1F #1F5D30
split-complementary
#1F2D5D #5D301F #4C5D1F
monochromatic
#080B17 #10172F #1F2D5D #2E438B #3E59B9

Accessibility & contrast

On white

13.19
#1F2D5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2D5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D5D
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D5D#FFFFFF#000000##FFFFFF
##1F2D5D1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15335F
Deuteranopia (green-blind)
#092D5C
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2d5d;
/* rgb */ color: rgb(31, 45, 93);
/* oklch */ color: oklch(31.3% 0.087 268.7);
Tailwind
colors: {
  custom: {
    50: '#62658b',
    500: '#1f2d5d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d5d;
$custom-light: #62658b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d5d",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 93
  },
  "hsl": {
    "h": 226.452,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.08742,
    "h": 268.7
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#1F2D5D
secondary
#928146
accent
#BA4EDA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05050C
muted
#7A7A7D

Preview Lab

Preview with #1F2D5D

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

Preview Lab → · Contrast checker → · Palette generator →

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