#1F2CA1#1F2CA1

#1F2CA1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.185 H 269.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#1F2CA1
RGBrgb(31, 44, 161)
HSLhsl(234, 68%, 38%)
HSVhsv(234, 81%, 63%)
CMYKcmyk(80.7%, 72.7%, 0%, 36.9%)
CIE-LABlab(25.76, 38.18, -63.95)
CIE-LCHlch(25.76, 74.48, 300.84°)
OKLaboklab(37.57% -0.0026 -0.1853)
OKLCHoklch(37.57% 0.185 269.2)
XYZxyz(7.8966, 4.6650, 34.1956)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2CA1 #A1941F
analogous
#1F6DA1 #1F2CA1 #531FA1
triadic
#1F2CA1 #A11F2C #2CA11F
tetradic
#1F2CA1 #A11F6D #A1941F #1FA153
square
#1F2CA1 #A11F6D #A1941F #1FA153
split-complementary
#1F2CA1 #A1531F #6DA11F
monochromatic
#0B103A #151E6E #1F2CA1 #293AD4 #5B68DF

Accessibility & contrast

On white

10.86
#1F2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2CA1
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2CA1#FFFFFF#000000##FFFFFF
##1F2CA11.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f2ca1;
/* rgb */ color: rgb(31, 44, 161);
/* oklch */ color: oklch(37.6% 0.185 269.2);
Tailwind
colors: {
  custom: {
    50: '#7366be',
    500: '#1f2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ca1;
$custom-light: #7366be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ca1",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 234,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3757,
    "c": 0.18528,
    "h": 269.2
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#1F2CA1
secondary
#C4B958
accent
#D93DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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