#1F2863#1F2863

#1F2863 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.104 H 272.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1F2863
RGBrgb(31, 40, 99)
HSLhsl(232, 52%, 25%)
HSVhsv(232, 69%, 39%)
CMYKcmyk(68.7%, 59.6%, 0%, 61.2%)
CIE-LABlab(18.84, 17.36, -36.18)
CIE-LCHlch(18.84, 40.13, 295.63°)
OKLaboklab(30.71% 0.004 -0.104)
OKLCHoklch(30.71% 0.104 272.2)
XYZxyz(3.5752, 2.7094, 12.1365)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2863 #635A1F
analogous
#1F4A63 #1F2863 #381F63
triadic
#1F2863 #631F28 #28631F
tetradic
#1F2863 #631F4A #635A1F #1F6338
square
#1F2863 #631F4A #635A1F #1F6338
split-complementary
#1F2863 #63381F #4A631F
monochromatic
#070917 #101534 #1F2863 #2E3B92 #3C4EC0

Accessibility & contrast

On white

13.62
#1F2863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2863
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2863#FFFFFF#000000##FFFFFF
##1F28631.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003165
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#003641
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2863;
/* rgb */ color: rgb(31, 40, 99);
/* oklch */ color: oklch(30.7% 0.104 272.2);
Tailwind
colors: {
  custom: {
    50: '#636190',
    500: '#1f2863',
    950: '#000000',
  },
}
SCSS
$custom: #1f2863;
$custom-light: #636190;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2863",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 99
  },
  "hsl": {
    "h": 232.059,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30707,
    "c": 0.1041,
    "h": 272.2
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#1F2863
secondary
#988D46
accent
#C94CDC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #1F2863

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

Preview Lab → · Contrast checker → · Palette generator →

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