#1F2C73#1F2C73

#1F2C73 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.123 H 270.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2C73
RGBrgb(31, 44, 115)
HSLhsl(231, 58%, 29%)
HSVhsv(231, 73%, 45%)
CMYKcmyk(73%, 61.7%, 0%, 54.9%)
CIE-LABlab(21.32, 20.81, -42.54)
CIE-LCHlch(21.32, 47.36, 296.07°)
OKLaboklab(32.98% 0.0007 -0.1226)
OKLCHoklch(32.98% 0.123 270.3)
XYZxyz(4.5592, 3.3300, 16.6188)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C73 #73661F
analogous
#1F5673 #1F2C73 #3C1F73
triadic
#1F2C73 #731F2C #2C731F
tetradic
#1F2C73 #731F56 #73661F #1F733C
square
#1F2C73 #731F56 #73661F #1F733C
split-complementary
#1F2C73 #733C1F #56731F
monochromatic
#060918 #121A43 #1F2C73 #2C3EA3 #4156CC

Accessibility & contrast

On white

12.61
#1F2C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C73
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C73#FFFFFF#000000##FFFFFF
##1F2C731.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2c73;
/* rgb */ color: rgb(31, 44, 115);
/* oklch */ color: oklch(33.0% 0.123 270.3);
Tailwind
colors: {
  custom: {
    50: '#67649c',
    500: '#1f2c73',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c73;
$custom-light: #67649c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c73",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 115
  },
  "hsl": {
    "h": 230.714,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.12265,
    "h": 270.3
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#1F2C73
secondary
#A79847
accent
#C947E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C73

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

Preview Lab → · Contrast checker → · Palette generator →

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