#1F296C#1F296C

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

Color values

HEX#1F296C
RGBrgb(31, 41, 108)
HSLhsl(232, 55%, 27%)
HSVhsv(232, 71%, 42%)
CMYKcmyk(71.3%, 62%, 0%, 57.6%)
CIE-LABlab(19.88, 20.18, -40.37)
CIE-LCHlch(19.88, 45.13, 296.56°)
OKLaboklab(31.72% 0.0033 -0.1163)
OKLCHoklch(31.72% 0.116 271.6)
XYZxyz(4.0639, 2.9595, 14.5415)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F296C #6C621F
analogous
#1F506C #1F296C #3C1F6C
triadic
#1F296C #6C1F29 #296C1F
tetradic
#1F296C #6C1F50 #6C621F #1F6C3C
square
#1F296C #6C1F50 #6C621F #1F6C3C
split-complementary
#1F296C #6C3C1F #506C1F
monochromatic
#070918 #11173C #1F296C #2D3B9C #3E50C8

Accessibility & contrast

On white

13.19
#1F296C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F296C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F296C
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F296C#FFFFFF#000000##FFFFFF
##1F296C1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f296c;
/* rgb */ color: rgb(31, 41, 108);
/* oklch */ color: oklch(31.7% 0.116 271.6);
Tailwind
colors: {
  custom: {
    50: '#666297',
    500: '#1f296c',
    950: '#000000',
  },
}
SCSS
$custom: #1f296c;
$custom-light: #666297;
$custom-dark: #000000;
JSON
{
  "hex": "#1f296c",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 108
  },
  "hsl": {
    "h": 232.208,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3172,
    "c": 0.11636,
    "h": 271.6
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#1F296C
secondary
#A09547
accent
#CB49DF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F296C

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

Preview Lab → · Contrast checker → · Palette generator →

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