#1F2C6E#1F2C6E

#1F2C6E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.5% C 0.115 H 270.3°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2C6E
RGBrgb(31, 44, 110)
HSLhsl(230, 56%, 28%)
HSVhsv(230, 72%, 43%)
CMYKcmyk(71.8%, 60%, 0%, 56.9%)
CIE-LABlab(20.90, 18.84, -40.01)
CIE-LCHlch(20.90, 44.22, 295.21°)
OKLaboklab(32.53% 0.0006 -0.1152)
OKLCHoklch(32.53% 0.115 270.3)
XYZxyz(4.2793, 3.2180, 15.1445)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C6E #6E611F
analogous
#1F536E #1F2C6E #3A1F6E
triadic
#1F2C6E #6E1F2C #2C6E1F
tetradic
#1F2C6E #6E1F53 #6E611F #1F6E3A
square
#1F2C6E #6E1F53 #6E611F #1F6E3A
split-complementary
#1F2C6E #6E3A1F #536E1F
monochromatic
#070A18 #12193E #1F2C6E #2C3F9E #3F55C9

Accessibility & contrast

On white

12.78
#1F2C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C6E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C6E#FFFFFF#000000##FFFFFF
##1F2C6E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2c6e;
/* rgb */ color: rgb(31, 44, 110);
/* oklch */ color: oklch(32.5% 0.115 270.3);
Tailwind
colors: {
  custom: {
    50: '#666498',
    500: '#1f2c6e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c6e;
$custom-light: #666498;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c6e",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 110
  },
  "hsl": {
    "h": 230.127,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3253,
    "c": 0.11522,
    "h": 270.3
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#1F2C6E
secondary
#A29347
accent
#C748DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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