#1F296D#1F296D

#1F296D is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.8% C 0.118 H 271.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#1F296D
RGBrgb(31, 41, 109)
HSLhsl(232, 56%, 27%)
HSVhsv(232, 72%, 43%)
CMYKcmyk(71.6%, 62.4%, 0%, 57.3%)
CIE-LABlab(19.97, 20.57, -40.87)
CIE-LCHlch(19.97, 45.76, 296.72°)
OKLaboklab(31.81% 0.0033 -0.1178)
OKLCHoklch(31.81% 0.118 271.6)
XYZxyz(4.1174, 2.9809, 14.8234)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F296D #6D631F
analogous
#1F506D #1F296D #3C1F6D
triadic
#1F296D #6D1F29 #296D1F
tetradic
#1F296D #6D1F50 #6D631F #1F6D3C
square
#1F296D #6D1F50 #6D631F #1F6D3C
split-complementary
#1F296D #6D3C1F #506D1F
monochromatic
#070918 #11173D #1F296D #2D3B9D #3E50C8

Accessibility & contrast

On white

13.16
#1F296D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F296D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F296D
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F296D#FFFFFF#000000##FFFFFF
##1F296D1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f296d;
/* rgb */ color: rgb(31, 41, 109);
/* oklch */ color: oklch(31.8% 0.118 271.6);
Tailwind
colors: {
  custom: {
    50: '#666297',
    500: '#1f296d',
    950: '#000000',
  },
}
SCSS
$custom: #1f296d;
$custom-light: #666297;
$custom-dark: #000000;
JSON
{
  "hex": "#1f296d",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 109
  },
  "hsl": {
    "h": 232.308,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31812,
    "c": 0.11785,
    "h": 271.6
  },
  "luminance": 0.02981
}

Semantic roles & 50–950 ramp

primary
#1F296D
secondary
#A19647
accent
#CC49DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1F296D

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

Preview Lab → · Contrast checker → · Palette generator →

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