#1F2CA7#1F2CA7

#1F2CA7 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.193 H 269.0°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#1F2CA7
RGBrgb(31, 44, 167)
HSLhsl(234, 69%, 39%)
HSVhsv(234, 81%, 65%)
CMYKcmyk(81.4%, 73.7%, 0%, 34.5%)
CIE-LABlab(26.39, 40.32, -66.53)
CIE-LCHlch(26.39, 77.79, 301.21°)
OKLaboklab(38.22% -0.0034 -0.1928)
OKLCHoklch(38.22% 0.193 269)
XYZxyz(8.4384, 4.8817, 37.0492)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2CA7 #A79A1F
analogous
#1F70A7 #1F2CA7 #561FA7
triadic
#1F2CA7 #A71F2C #2CA71F
tetradic
#1F2CA7 #A71F70 #A79A1F #1FA756
square
#1F2CA7 #A71F70 #A79A1F #1FA756
split-complementary
#1F2CA7 #A7561F #70A71F
monochromatic
#0C1140 #151E73 #1F2CA7 #2B3CD8 #5F6CE1

Accessibility & contrast

On white

10.62
#1F2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2CA7
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2CA7#FFFFFF#000000##FFFFFF
##1F2CA71.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ca7;
/* rgb */ color: rgb(31, 44, 167);
/* oklch */ color: oklch(38.2% 0.193 269.0);
Tailwind
colors: {
  custom: {
    50: '#7566c2',
    500: '#1f2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ca7;
$custom-light: #7566c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ca7",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 234.265,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.1928,
    "h": 269
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#1F2CA7
secondary
#C6BC5C
accent
#DB3CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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