#1F255B#1F255B

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

Color values

HEX#1F255B
RGBrgb(31, 37, 91)
HSLhsl(234, 49%, 24%)
HSVhsv(234, 66%, 36%)
CMYKcmyk(65.9%, 59.3%, 0%, 64.3%)
CIE-LABlab(17.32, 16.39, -33.35)
CIE-LCHlch(17.32, 37.16, 296.16°)
OKLaboklab(29.36% 0.0069 -0.0957)
OKLCHoklch(29.36% 0.096 274.1)
XYZxyz(3.1143, 2.3695, 10.1887)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F255B #5B551F
analogous
#1F435B #1F255B #371F5B
triadic
#1F255B #5B1F25 #255B1F
tetradic
#1F255B #5B1F43 #5B551F #1F5B37
square
#1F255B #5B1F43 #5B551F #1F5B37
split-complementary
#1F255B #5B371F #435B1F
monochromatic
#080917 #0F122D #1F255B #2F3889 #3E4AB6

Accessibility & contrast

On white

14.25
#1F255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F255B
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F255B#FFFFFF#000000##FFFFFF
##1F255B1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f255b;
/* rgb */ color: rgb(31, 37, 91);
/* oklch */ color: oklch(29.4% 0.096 274.1);
Tailwind
colors: {
  custom: {
    50: '#625f8a',
    500: '#1f255b',
    950: '#000000',
  },
}
SCSS
$custom: #1f255b;
$custom-light: #625f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f255b",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 234,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29362,
    "c": 0.09599,
    "h": 274.1
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#1F255B
secondary
#908846
accent
#CB4FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #1F255B

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

Preview Lab → · Contrast checker → · Palette generator →

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