#1F2A90#1F2A90

#1F2A90 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.166 H 270.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1F2A90
RGBrgb(31, 42, 144)
HSLhsl(234, 65%, 34%)
HSVhsv(234, 78%, 56%)
CMYKcmyk(78.5%, 70.8%, 0%, 43.5%)
CIE-LABlab(23.54, 33.26, -57.18)
CIE-LCHlch(23.54, 66.15, 300.18°)
OKLaboklab(35.44% 0.0003 -0.1655)
OKLCHoklch(35.44% 0.166 270.1)
XYZxyz(6.4254, 3.9601, 26.8059)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A90 #90851F
analogous
#1F6390 #1F2A90 #4D1F90
triadic
#1F2A90 #901F2A #2A901F
tetradic
#1F2A90 #901F63 #90851F #1F904D
square
#1F2A90 #901F63 #90851F #1F904D
split-complementary
#1F2A90 #904D1F #63901F
monochromatic
#090D2B #141B5E #1F2A90 #2A39C2 #505DD9

Accessibility & contrast

On white

11.72
#1F2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A90
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A90#FFFFFF#000000##FFFFFF
##1F2A901.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2a90;
/* rgb */ color: rgb(31, 42, 144);
/* oklch */ color: oklch(35.4% 0.166 270.1);
Tailwind
colors: {
  custom: {
    50: '#6f64b2',
    500: '#1f2a90',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a90;
$custom-light: #6f64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a90",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 234.159,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35444,
    "c": 0.16553,
    "h": 270.1
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#1F2A90
secondary
#BCB24E
accent
#D740E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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