#1F2F63#1F2F63

#1F2F63 is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.3% C 0.094 H 268.0°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#1F2F63
RGBrgb(31, 47, 99)
HSLhsl(226, 52%, 25%)
HSVhsv(226, 69%, 39%)
CMYKcmyk(68.7%, 52.5%, 0%, 61.2%)
CIE-LABlab(20.92, 12.31, -32.82)
CIE-LCHlch(20.92, 35.05, 290.56°)
OKLaboklab(32.28% -0.0033 -0.094)
OKLCHoklch(32.28% 0.094 268)
XYZxyz(3.8329, 3.2248, 12.2224)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F63 #63531F
analogous
#1F5163 #1F2F63 #311F63
triadic
#1F2F63 #631F2F #2F631F
tetradic
#1F2F63 #631F51 #63531F #1F6331
square
#1F2F63 #631F51 #63531F #1F6331
split-complementary
#1F2F63 #63311F #51631F
monochromatic
#070B17 #101934 #1F2F63 #2E4592 #3C5BC0

Accessibility & contrast

On white

12.77
#1F2F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F63
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F63#FFFFFF#000000##FFFFFF
##1F2F631.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133665
Deuteranopia (green-blind)
#032F62
Tritanopia (blue-blind)
#003B44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2f63;
/* rgb */ color: rgb(31, 47, 99);
/* oklch */ color: oklch(32.3% 0.094 268.0);
Tailwind
colors: {
  custom: {
    50: '#636790',
    500: '#1f2f63',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f63;
$custom-light: #636790;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f63",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 99
  },
  "hsl": {
    "h": 225.882,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32277,
    "c": 0.09408,
    "h": 268
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#1F2F63
secondary
#988446
accent
#BA4CDC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #1F2F63

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

Preview Lab → · Contrast checker → · Palette generator →

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