#1F2EA0#1F2EA0

#1F2EA0 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.182 H 268.9°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#1F2EA0
RGBrgb(31, 46, 160)
HSLhsl(233, 68%, 37%)
HSVhsv(233, 81%, 63%)
CMYKcmyk(80.6%, 71.2%, 0%, 37.3%)
CIE-LABlab(26.11, 36.58, -62.77)
CIE-LCHlch(26.11, 72.65, 300.23°)
OKLaboklab(37.79% -0.0033 -0.1818)
OKLCHoklch(37.79% 0.182 268.9)
XYZxyz(7.8850, 4.7825, 33.7584)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2EA0 #A0911F
analogous
#1F6FA0 #1F2EA0 #501FA0
triadic
#1F2EA0 #A01F2E #2EA01F
tetradic
#1F2EA0 #A01F6F #A0911F #1FA050
square
#1F2EA0 #A01F6F #A0911F #1FA050
split-complementary
#1F2EA0 #A0501F #6FA01F
monochromatic
#0B1139 #151F6D #1F2EA0 #293DD3 #5A6ADF

Accessibility & contrast

On white

10.73
#1F2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2EA0
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2EA0#FFFFFF#000000##FFFFFF
##1F2EA01.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ea0;
/* rgb */ color: rgb(31, 46, 160);
/* oklch */ color: oklch(37.8% 0.182 268.9);
Tailwind
colors: {
  custom: {
    50: '#7367bd',
    500: '#1f2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ea0;
$custom-light: #7367bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ea0",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 233.023,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3779,
    "c": 0.18185,
    "h": 268.9
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#1F2EA0
secondary
#C3B758
accent
#D63DEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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