#1F2A9F#1F2A9F

#1F2A9F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.185 H 269.5°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#1F2A9F
RGBrgb(31, 42, 159)
HSLhsl(235, 67%, 37%)
HSVhsv(235, 81%, 62%)
CMYKcmyk(80.5%, 73.6%, 0%, 37.6%)
CIE-LABlab(25.11, 38.69, -63.81)
CIE-LCHlch(25.11, 74.62, 301.23°)
OKLaboklab(37.04% -0.0015 -0.1848)
OKLCHoklch(37.04% 0.185 269.5)
XYZxyz(7.6489, 4.4496, 33.2499)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A9F #9F941F
analogous
#1F6A9F #1F2A9F #541F9F
triadic
#1F2A9F #9F1F2A #2A9F1F
tetradic
#1F2A9F #9F1F6A #9F941F #1F9F54
square
#1F2A9F #9F1F6A #9F941F #1F9F54
split-complementary
#1F2A9F #9F541F #6A9F1F
monochromatic
#0B0F39 #151C6C #1F2A9F #2938D2 #5A65DF

Accessibility & contrast

On white

11.11
#1F2A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F2A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A9F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A9F#FFFFFF#000000##FFFFFF
##1F2A9F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2a9f;
/* rgb */ color: rgb(31, 42, 159);
/* oklch */ color: oklch(37.0% 0.185 269.5);
Tailwind
colors: {
  custom: {
    50: '#7364bd',
    500: '#1f2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a9f;
$custom-light: #7364bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a9f",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 234.844,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37039,
    "c": 0.18486,
    "h": 269.5
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#1F2A9F
secondary
#C3B957
accent
#DB3EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #1F2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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