#1F2C79#1F2C79

#1F2C79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.131 H 270.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1F2C79
RGBrgb(31, 44, 121)
HSLhsl(231, 59%, 30%)
HSVhsv(231, 74%, 47%)
CMYKcmyk(74.4%, 63.6%, 0%, 52.5%)
CIE-LABlab(21.85, 23.16, -45.52)
CIE-LCHlch(21.85, 51.07, 296.97°)
OKLaboklab(33.53% 0.0006 -0.1314)
OKLCHoklch(33.53% 0.131 270.3)
XYZxyz(4.9158, 3.4726, 18.4967)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C79 #796C1F
analogous
#1F5979 #1F2C79 #3F1F79
triadic
#1F2C79 #791F2C #2C791F
tetradic
#1F2C79 #791F59 #796C1F #1F793F
square
#1F2C79 #791F59 #796C1F #1F793F
split-complementary
#1F2C79 #793F1F #59791F
monochromatic
#060918 #131A48 #1F2C79 #2B3EAA #4358CF

Accessibility & contrast

On white

12.39
#1F2C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C79
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C79#FFFFFF#000000##FFFFFF
##1F2C791.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2c79;
/* rgb */ color: rgb(31, 44, 121);
/* oklch */ color: oklch(33.5% 0.131 270.3);
Tailwind
colors: {
  custom: {
    50: '#6965a0',
    500: '#1f2c79',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c79;
$custom-light: #6965a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c79",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 231.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33532,
    "c": 0.13139,
    "h": 270.3
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#1F2C79
secondary
#AC9E47
accent
#CC45E2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1F2C79

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

Preview Lab → · Contrast checker → · Palette generator →

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