#1F255C#1F255C

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

Color values

HEX#1F255C
RGBrgb(31, 37, 92)
HSLhsl(234, 50%, 24%)
HSVhsv(234, 66%, 36%)
CMYKcmyk(66.3%, 59.8%, 0%, 63.9%)
CIE-LABlab(17.40, 16.78, -33.89)
CIE-LCHlch(17.40, 37.81, 296.34°)
OKLaboklab(29.45% 0.0069 -0.0973)
OKLCHoklch(29.45% 0.098 274.1)
XYZxyz(3.1578, 2.3869, 10.4174)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F255C #5C561F
analogous
#1F445C #1F255C #381F5C
triadic
#1F255C #5C1F25 #255C1F
tetradic
#1F255C #5C1F44 #5C561F #1F5C38
square
#1F255C #5C1F44 #5C561F #1F5C38
split-complementary
#1F255C #5C381F #445C1F
monochromatic
#080917 #10132E #1F255C #2E378A #3E4AB8

Accessibility & contrast

On white

14.21
#1F255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F255C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F255C#FFFFFF#000000##FFFFFF
##1F255C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f255c;
/* rgb */ color: rgb(31, 37, 92);
/* oklch */ color: oklch(29.4% 0.098 274.1);
Tailwind
colors: {
  custom: {
    50: '#625f8b',
    500: '#1f255c',
    950: '#000000',
  },
}
SCSS
$custom: #1f255c;
$custom-light: #625f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f255c",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 234.098,
    "s": 49.593,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29448,
    "c": 0.09756,
    "h": 274.1
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#1F255C
secondary
#918946
accent
#CC4FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1F255C

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

Preview Lab → · Contrast checker → · Palette generator →

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