#1F2255#1F2255

#1F2255 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.091 H 276.3°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#1F2255
RGBrgb(31, 34, 85)
HSLhsl(237, 47%, 23%)
HSVhsv(237, 64%, 33%)
CMYKcmyk(63.5%, 60%, 0%, 66.7%)
CIE-LABlab(15.96, 16.24, -31.53)
CIE-LCHlch(15.96, 35.47, 297.24°)
OKLaboklab(28.19% 0.01 -0.0904)
OKLCHoklch(28.19% 0.091 276.3)
XYZxyz(2.7763, 2.0910, 8.8499)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2255 #55521F
analogous
#1F3D55 #1F2255 #371F55
triadic
#1F2255 #551F22 #22551F
tetradic
#1F2255 #551F3D #55521F #1F5537
square
#1F2255 #551F3D #55521F #1F5537
split-complementary
#1F2255 #55371F #3D551F
monochromatic
#080916 #0F1028 #1F2255 #2F3482 #4046AF

Accessibility & contrast

On white

14.81
#1F2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1F2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2255
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2255#FFFFFF#000000##FFFFFF
##1F22551.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012A57
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f2255;
/* rgb */ color: rgb(31, 34, 85);
/* oklch */ color: oklch(28.2% 0.091 276.3);
Tailwind
colors: {
  custom: {
    50: '#615d85',
    500: '#1f2255',
    950: '#000000',
  },
}
SCSS
$custom: #1f2255;
$custom-light: #615d85;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2255",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 236.667,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28191,
    "c": 0.09097,
    "h": 276.3
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#1F2255
secondary
#8A8646
accent
#CF52D6
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1F2255

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

Preview Lab → · Contrast checker → · Palette generator →

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