#1F2A9E#1F2A9E

#1F2A9E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.184 H 269.6°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#1F2A9E
RGBrgb(31, 42, 158)
HSLhsl(235, 67%, 37%)
HSVhsv(235, 80%, 62%)
CMYKcmyk(80.4%, 73.4%, 0%, 38%)
CIE-LABlab(25.00, 38.34, -63.38)
CIE-LCHlch(25.00, 74.07, 301.17°)
OKLaboklab(36.93% -0.0014 -0.1836)
OKLCHoklch(36.93% 0.184 269.6)
XYZxyz(7.5625, 4.4150, 32.7947)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A9E #9E931F
analogous
#1F6A9E #1F2A9E #541F9E
triadic
#1F2A9E #9E1F2A #2A9E1F
tetradic
#1F2A9E #9E1F6A #9E931F #1F9E54
square
#1F2A9E #9E1F6A #9E931F #1F9E54
split-complementary
#1F2A9E #9E541F #6A9E1F
monochromatic
#0B0F38 #151C6B #1F2A9E #2938D1 #5965DE

Accessibility & contrast

On white

11.15
#1F2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A9E
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A9E#FFFFFF#000000##FFFFFF
##1F2A9E1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2a9e;
/* rgb */ color: rgb(31, 42, 158);
/* oklch */ color: oklch(36.9% 0.184 269.6);
Tailwind
colors: {
  custom: {
    50: '#7264bc',
    500: '#1f2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a9e;
$custom-light: #7264bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a9e",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 234.803,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36931,
    "c": 0.18359,
    "h": 269.6
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#1F2A9E
secondary
#C2B956
accent
#DB3EEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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