#1F2D63#1F2D63

#1F2D63 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.097 H 269.3°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#1F2D63
RGBrgb(31, 45, 99)
HSLhsl(228, 52%, 25%)
HSVhsv(228, 69%, 39%)
CMYKcmyk(68.7%, 54.5%, 0%, 61.2%)
CIE-LABlab(20.32, 13.75, -33.79)
CIE-LCHlch(20.32, 36.49, 292.14°)
OKLaboklab(31.82% -0.0012 -0.0969)
OKLCHoklch(31.82% 0.097 269.3)
XYZxyz(3.7548, 3.0686, 12.1964)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D63 #63551F
analogous
#1F4F63 #1F2D63 #331F63
triadic
#1F2D63 #631F2D #2D631F
tetradic
#1F2D63 #631F4F #63551F #1F6333
square
#1F2D63 #631F4F #63551F #1F6333
split-complementary
#1F2D63 #63331F #4F631F
monochromatic
#070B17 #101834 #1F2D63 #2E4292 #3C57C0

Accessibility & contrast

On white

13.01
#1F2D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2D63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D63
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D63#FFFFFF#000000##FFFFFF
##1F2D631.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3465
Deuteranopia (green-blind)
#002E62
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2d63;
/* rgb */ color: rgb(31, 45, 99);
/* oklch */ color: oklch(31.8% 0.097 269.3);
Tailwind
colors: {
  custom: {
    50: '#636590',
    500: '#1f2d63',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d63;
$custom-light: #636590;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d63",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 99
  },
  "hsl": {
    "h": 227.647,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31817,
    "c": 0.09693,
    "h": 269.3
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#1F2D63
secondary
#988746
accent
#BE4CDC
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06050C
muted
#7A7A7D

Preview Lab

Preview with #1F2D63

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

Preview Lab → · Contrast checker → · Palette generator →

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