#1F2A8C#1F2A8C

#1F2A8C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.160 H 270.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1F2A8C
RGBrgb(31, 42, 140)
HSLhsl(234, 64%, 34%)
HSVhsv(234, 78%, 55%)
CMYKcmyk(77.9%, 70%, 0%, 45.1%)
CIE-LABlab(23.14, 31.77, -55.36)
CIE-LCHlch(23.14, 63.83, 299.85°)
OKLaboklab(35.03% 0.0007 -0.1602)
OKLCHoklch(35.03% 0.16 270.3)
XYZxyz(6.1250, 3.8400, 25.2242)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A8C #8C811F
analogous
#1F608C #1F2A8C #4A1F8C
triadic
#1F2A8C #8C1F2A #2A8C1F
tetradic
#1F2A8C #8C1F60 #8C811F #1F8C4A
square
#1F2A8C #8C1F60 #8C811F #1F8C4A
split-complementary
#1F2A8C #8C4A1F #608C1F
monochromatic
#090C28 #141B5A #1F2A8C #2A39BE #4E5CD8

Accessibility & contrast

On white

11.88
#1F2A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A8C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A8C#FFFFFF#000000##FFFFFF
##1F2A8C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2a8c;
/* rgb */ color: rgb(31, 42, 140);
/* oklch */ color: oklch(35.0% 0.160 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e64af',
    500: '#1f2a8c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a8c;
$custom-light: #6e64af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a8c",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 140
  },
  "hsl": {
    "h": 233.945,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35029,
    "c": 0.16022,
    "h": 270.3
  },
  "luminance": 0.03841
}

Semantic roles & 50–950 ramp

primary
#1F2A8C
secondary
#BBAF4C
accent
#D641E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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