#1F2A9C#1F2A9C

#1F2A9C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.181 H 269.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2A9C
RGBrgb(31, 42, 156)
HSLhsl(235, 67%, 37%)
HSVhsv(235, 80%, 61%)
CMYKcmyk(80.1%, 73.1%, 0%, 38.8%)
CIE-LABlab(24.79, 37.62, -62.51)
CIE-LCHlch(24.79, 72.95, 301.04°)
OKLaboklab(36.71% -0.0011 -0.181)
OKLCHoklch(36.71% 0.181 269.6)
XYZxyz(7.3917, 4.3467, 31.8955)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A9C #9C911F
analogous
#1F699C #1F2A9C #531F9C
triadic
#1F2A9C #9C1F2A #2A9C1F
tetradic
#1F2A9C #9C1F69 #9C911F #1F9C53
square
#1F2A9C #9C1F69 #9C911F #1F9C53
split-complementary
#1F2A9C #9C531F #699C1F
monochromatic
#0B0F36 #151C69 #1F2A9C #2938CF #5863DE

Accessibility & contrast

On white

11.23
#1F2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A9C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A9C#FFFFFF#000000##FFFFFF
##1F2A9C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2a9c;
/* rgb */ color: rgb(31, 42, 156);
/* oklch */ color: oklch(36.7% 0.181 269.6);
Tailwind
colors: {
  custom: {
    50: '#7264ba',
    500: '#1f2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a9c;
$custom-light: #7264ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a9c",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 234.72,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36715,
    "c": 0.18105,
    "h": 269.6
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#1F2A9C
secondary
#C1B855
accent
#DB3EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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