#1F2CA6#1F2CA6

#1F2CA6 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.192 H 269.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#1F2CA6
RGBrgb(31, 44, 166)
HSLhsl(234, 69%, 39%)
HSVhsv(234, 81%, 65%)
CMYKcmyk(81.3%, 73.5%, 0%, 34.9%)
CIE-LABlab(26.29, 39.96, -66.10)
CIE-LCHlch(26.29, 77.25, 301.15°)
OKLaboklab(38.11% -0.0032 -0.1915)
OKLCHoklch(38.11% 0.192 269)
XYZxyz(8.3463, 4.8449, 36.5643)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2CA6 #A6991F
analogous
#1F6FA6 #1F2CA6 #551FA6
triadic
#1F2CA6 #A61F2C #2CA61F
tetradic
#1F2CA6 #A61F6F #A6991F #1FA655
square
#1F2CA6 #A61F6F #A6991F #1FA655
split-complementary
#1F2CA6 #A6551F #6FA61F
monochromatic
#0C113F #151E72 #1F2CA6 #2B3BD7 #5E6BE1

Accessibility & contrast

On white

10.66
#1F2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2CA6
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2CA6#FFFFFF#000000##FFFFFF
##1F2CA61.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2ca6;
/* rgb */ color: rgb(31, 44, 166);
/* oklch */ color: oklch(38.1% 0.192 269.0);
Tailwind
colors: {
  custom: {
    50: '#7466c2',
    500: '#1f2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ca6;
$custom-light: #7466c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ca6",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 234.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38108,
    "c": 0.19156,
    "h": 269
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#1F2CA6
secondary
#C5BB5B
accent
#DB3CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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