#1F2D66#1F2D66

#1F2D66 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.1% C 0.102 H 269.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#1F2D66
RGBrgb(31, 45, 102)
HSLhsl(228, 53%, 26%)
HSVhsv(228, 70%, 40%)
CMYKcmyk(69.6%, 55.9%, 0%, 60%)
CIE-LABlab(20.55, 14.95, -35.39)
CIE-LCHlch(20.55, 38.41, 292.90°)
OKLaboklab(32.06% -0.0009 -0.1016)
OKLCHoklch(32.06% 0.102 269.5)
XYZxyz(3.9009, 3.1270, 12.9658)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D66 #66581F
analogous
#1F5066 #1F2D66 #341F66
triadic
#1F2D66 #661F2D #2D661F
tetradic
#1F2D66 #661F50 #66581F #1F6634
square
#1F2D66 #661F50 #66581F #1F6634
split-complementary
#1F2D66 #66341F #50661F
monochromatic
#070A17 #111837 #1F2D66 #2D4295 #3C57C4

Accessibility & contrast

On white

12.92
#1F2D66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F2D66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D66
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D66#FFFFFF#000000##FFFFFF
##1F2D661.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083568
Deuteranopia (green-blind)
#002E65
Tritanopia (blue-blind)
#003A44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2d66;
/* rgb */ color: rgb(31, 45, 102);
/* oklch */ color: oklch(32.1% 0.102 269.5);
Tailwind
colors: {
  custom: {
    50: '#646592',
    500: '#1f2d66',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d66;
$custom-light: #646592;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d66",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 102
  },
  "hsl": {
    "h": 228.169,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32063,
    "c": 0.10161,
    "h": 269.5
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#1F2D66
secondary
#9A8A46
accent
#C04BDD
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #1F2D66

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

Preview Lab → · Contrast checker → · Palette generator →

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