#1F2EA7#1F2EA7

#1F2EA7 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.191 H 268.8°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2EA7
RGBrgb(31, 46, 167)
HSLhsl(233, 69%, 39%)
HSVhsv(233, 81%, 65%)
CMYKcmyk(81.4%, 72.5%, 0%, 34.5%)
CIE-LABlab(26.83, 39.10, -65.81)
CIE-LCHlch(26.83, 76.55, 300.72°)
OKLaboklab(38.53% -0.0041 -0.1907)
OKLCHoklch(38.53% 0.191 268.8)
XYZxyz(8.5147, 5.0343, 37.0747)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2EA7 #A7981F
analogous
#1F72A7 #1F2EA7 #541FA7
triadic
#1F2EA7 #A71F2E #2EA71F
tetradic
#1F2EA7 #A71F72 #A7981F #1FA754
square
#1F2EA7 #A71F72 #A7981F #1FA754
split-complementary
#1F2EA7 #A7541F #72A71F
monochromatic
#0C1240 #152073 #1F2EA7 #2B3ED8 #5F6DE1

Accessibility & contrast

On white

10.46
#1F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2EA7
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2EA7#FFFFFF#000000##FFFFFF
##1F2EA71.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0039A5
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f2ea7;
/* rgb */ color: rgb(31, 46, 167);
/* oklch */ color: oklch(38.5% 0.191 268.8);
Tailwind
colors: {
  custom: {
    50: '#7467c2',
    500: '#1f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ea7;
$custom-light: #7467c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ea7",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 233.382,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3853,
    "c": 0.19072,
    "h": 268.8
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#1F2EA7
secondary
#C6BA5C
accent
#D83CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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