#1F2C75#1F2C75

#1F2C75 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.126 H 270.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1F2C75
RGBrgb(31, 44, 117)
HSLhsl(231, 58%, 29%)
HSVhsv(231, 74%, 46%)
CMYKcmyk(73.5%, 62.4%, 0%, 54.1%)
CIE-LABlab(21.49, 21.60, -43.54)
CIE-LCHlch(21.49, 48.60, 296.38°)
OKLaboklab(33.16% 0.0007 -0.1256)
OKLCHoklch(33.16% 0.126 270.3)
XYZxyz(4.6755, 3.3766, 17.2315)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C75 #75681F
analogous
#1F5775 #1F2C75 #3D1F75
triadic
#1F2C75 #751F2C #2C751F
tetradic
#1F2C75 #751F57 #75681F #1F753D
square
#1F2C75 #751F57 #75681F #1F753D
split-complementary
#1F2C75 #753D1F #57751F
monochromatic
#060918 #121A45 #1F2C75 #2C3EA5 #4257CD

Accessibility & contrast

On white

12.53
#1F2C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C75
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C75#FFFFFF#000000##FFFFFF
##1F2C751.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2c75;
/* rgb */ color: rgb(31, 44, 117);
/* oklch */ color: oklch(33.2% 0.126 270.3);
Tailwind
colors: {
  custom: {
    50: '#68659d',
    500: '#1f2c75',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c75;
$custom-light: #68659d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c75",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 117
  },
  "hsl": {
    "h": 230.93,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33161,
    "c": 0.12559,
    "h": 270.3
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#1F2C75
secondary
#A99A47
accent
#CA46E1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C75

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

Preview Lab → · Contrast checker → · Palette generator →

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