#1F2CA5#1F2CA5

#1F2CA5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.190 H 269.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#1F2CA5
RGBrgb(31, 44, 165)
HSLhsl(234, 68%, 38%)
HSVhsv(234, 81%, 65%)
CMYKcmyk(81.2%, 73.3%, 0%, 35.3%)
CIE-LABlab(26.18, 39.61, -65.68)
CIE-LCHlch(26.18, 76.70, 301.09°)
OKLaboklab(38% -0.0031 -0.1903)
OKLCHoklch(38% 0.19 269.1)
XYZxyz(8.2550, 4.8083, 36.0830)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2CA5 #A5981F
analogous
#1F6FA5 #1F2CA5 #551FA5
triadic
#1F2CA5 #A51F2C #2CA51F
tetradic
#1F2CA5 #A51F6F #A5981F #1FA555
square
#1F2CA5 #A51F6F #A5981F #1FA555
split-complementary
#1F2CA5 #A5551F #6FA51F
monochromatic
#0C113E #151E71 #1F2CA5 #2A3BD7 #5E6AE1

Accessibility & contrast

On white

10.70
#1F2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2CA5
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2CA5#FFFFFF#000000##FFFFFF
##1F2CA51.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ca5;
/* rgb */ color: rgb(31, 44, 165);
/* oklch */ color: oklch(38.0% 0.190 269.1);
Tailwind
colors: {
  custom: {
    50: '#7466c1',
    500: '#1f2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ca5;
$custom-light: #7466c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ca5",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 234.179,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38,
    "c": 0.19031,
    "h": 269.1
  },
  "luminance": 0.04809
}

Semantic roles & 50–950 ramp

primary
#1F2CA5
secondary
#C5BB5B
accent
#DA3DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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