#1F255F#1F255F

#1F255F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.7% C 0.102 H 273.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#1F255F
RGBrgb(31, 37, 95)
HSLhsl(234, 51%, 25%)
HSVhsv(234, 67%, 37%)
CMYKcmyk(67.4%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.65, 17.95, -35.48)
CIE-LCHlch(17.65, 39.76, 296.83°)
OKLaboklab(29.71% 0.007 -0.102)
OKLCHoklch(29.71% 0.102 273.9)
XYZxyz(3.2915, 2.4404, 11.1218)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F255F #5F591F
analogous
#1F455F #1F255F #391F5F
triadic
#1F255F #5F1F25 #255F1F
tetradic
#1F255F #5F1F45 #5F591F #1F5F39
square
#1F255F #5F1F45 #5F591F #1F5F39
split-complementary
#1F255F #5F391F #455F1F
monochromatic
#080917 #101331 #1F255F #2E378D #3D49BB

Accessibility & contrast

On white

14.11
#1F255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F255F
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F255F#FFFFFF#000000##FFFFFF
##1F255F1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#00333E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f255f;
/* rgb */ color: rgb(31, 37, 95);
/* oklch */ color: oklch(29.7% 0.102 273.9);
Tailwind
colors: {
  custom: {
    50: '#635f8d',
    500: '#1f255f',
    950: '#000000',
  },
}
SCSS
$custom: #1f255f;
$custom-light: #635f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f255f",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 234.375,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29711,
    "c": 0.10223,
    "h": 273.9
  },
  "luminance": 0.02441
}

Semantic roles & 50–950 ramp

primary
#1F255F
secondary
#948C46
accent
#CD4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F255F

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

Preview Lab → · Contrast checker → · Palette generator →

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