#1F2CA8#1F2CA8

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

Color values

HEX#1F2CA8
RGBrgb(31, 44, 168)
HSLhsl(234, 69%, 39%)
HSVhsv(234, 82%, 66%)
CMYKcmyk(81.5%, 73.8%, 0%, 34.1%)
CIE-LABlab(26.50, 40.67, -66.96)
CIE-LCHlch(26.50, 78.34, 301.27°)
OKLaboklab(38.32% -0.0035 -0.194)
OKLCHoklch(38.32% 0.194 269)
XYZxyz(8.5312, 4.9188, 37.5380)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2CA8 #A89B1F
analogous
#1F71A8 #1F2CA8 #571FA8
triadic
#1F2CA8 #A81F2C #2CA81F
tetradic
#1F2CA8 #A81F71 #A89B1F #1FA857
square
#1F2CA8 #A81F71 #A89B1F #1FA857
split-complementary
#1F2CA8 #A8571F #71A81F
monochromatic
#0C1141 #151E74 #1F2CA8 #2C3CD8 #606CE2

Accessibility & contrast

On white

10.58
#1F2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2CA8
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2CA8#FFFFFF#000000##FFFFFF
##1F2CA81.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f2ca8;
/* rgb */ color: rgb(31, 44, 168);
/* oklch */ color: oklch(38.3% 0.194 269.0);
Tailwind
colors: {
  custom: {
    50: '#7566c3',
    500: '#1f2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ca8;
$custom-light: #7566c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ca8",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 234.307,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38325,
    "c": 0.19404,
    "h": 269
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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