#1F255A#1F255A

#1F255A is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.094 H 274.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#1F255A
RGBrgb(31, 37, 90)
HSLhsl(234, 49%, 24%)
HSVhsv(234, 66%, 35%)
CMYKcmyk(65.6%, 58.9%, 0%, 64.7%)
CIE-LABlab(17.24, 16.00, -32.82)
CIE-LCHlch(17.24, 36.51, 295.98°)
OKLaboklab(29.28% 0.0068 -0.0942)
OKLCHoklch(29.28% 0.094 274.1)
XYZxyz(3.0715, 2.3524, 9.9631)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F255A #5A541F
analogous
#1F425A #1F255A #361F5A
triadic
#1F255A #5A1F25 #255A1F
tetradic
#1F255A #5A1F42 #5A541F #1F5A36
square
#1F255A #5A1F42 #5A541F #1F5A36
split-complementary
#1F255A #5A361F #425A1F
monochromatic
#080917 #0F122C #1F255A #2F3888 #3E4AB5

Accessibility & contrast

On white

14.28
#1F255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F255A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F255A
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F255A#FFFFFF#000000##FFFFFF
##1F255A1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022D5C
Deuteranopia (green-blind)
#002859
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f255a;
/* rgb */ color: rgb(31, 37, 90);
/* oklch */ color: oklch(29.3% 0.094 274.1);
Tailwind
colors: {
  custom: {
    50: '#625f89',
    500: '#1f255a',
    950: '#000000',
  },
}
SCSS
$custom: #1f255a;
$custom-light: #625f89;
$custom-dark: #000000;
JSON
{
  "hex": "#1f255a",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 233.898,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29276,
    "c": 0.09441,
    "h": 274.1
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#1F255A
secondary
#8F8746
accent
#CA4FD8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040B
muted
#7A797C

Preview Lab

Preview with #1F255A

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

Preview Lab → · Contrast checker → · Palette generator →

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