#1F2A8F#1F2A8F

#1F2A8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.164 H 270.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#1F2A8F
RGBrgb(31, 42, 143)
HSLhsl(234, 64%, 34%)
HSVhsv(234, 78%, 56%)
CMYKcmyk(78.3%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.44, 32.89, -56.73)
CIE-LCHlch(23.44, 65.57, 300.10°)
OKLaboklab(35.34% 0.0004 -0.1642)
OKLCHoklch(35.34% 0.164 270.2)
XYZxyz(6.3493, 3.9297, 26.4052)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A8F #8F841F
analogous
#1F628F #1F2A8F #4C1F8F
triadic
#1F2A8F #8F1F2A #2A8F1F
tetradic
#1F2A8F #8F1F62 #8F841F #1F8F4C
square
#1F2A8F #8F1F62 #8F841F #1F8F4C
split-complementary
#1F2A8F #8F4C1F #628F1F
monochromatic
#090C2A #141B5D #1F2A8F #2A39C1 #4F5DD9

Accessibility & contrast

On white

11.76
#1F2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A8F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A8F#FFFFFF#000000##FFFFFF
##1F2A8F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2a8f;
/* rgb */ color: rgb(31, 42, 143);
/* oklch */ color: oklch(35.3% 0.164 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e64b1',
    500: '#1f2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a8f;
$custom-light: #6e64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a8f",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 234.107,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3534,
    "c": 0.16421,
    "h": 270.2
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#1F2A8F
secondary
#BCB14E
accent
#D740E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #1F2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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