#1F2FA0#1F2FA0

#1F2FA0 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.181 H 268.8°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#1F2FA0
RGBrgb(31, 47, 160)
HSLhsl(233, 68%, 37%)
HSVhsv(233, 81%, 63%)
CMYKcmyk(80.6%, 70.6%, 0%, 37.3%)
CIE-LABlab(26.34, 35.95, -62.39)
CIE-LCHlch(26.34, 72.00, 299.95°)
OKLaboklab(37.96% -0.0038 -0.1807)
OKLCHoklch(37.96% 0.181 268.8)
XYZxyz(7.9246, 4.8615, 33.7716)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2FA0 #A0901F
analogous
#1F70A0 #1F2FA0 #4F1FA0
triadic
#1F2FA0 #A01F2F #2FA01F
tetradic
#1F2FA0 #A01F70 #A0901F #1FA04F
square
#1F2FA0 #A01F70 #A0901F #1FA04F
split-complementary
#1F2FA0 #A04F1F #70A01F
monochromatic
#0B1139 #15206D #1F2FA0 #293ED3 #5A6BDF

Accessibility & contrast

On white

10.65
#1F2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2FA0
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2FA0#FFFFFF#000000##FFFFFF
##1F2FA01.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2fa0;
/* rgb */ color: rgb(31, 47, 160);
/* oklch */ color: oklch(38.0% 0.181 268.8);
Tailwind
colors: {
  custom: {
    50: '#7268bd',
    500: '#1f2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #1f2fa0;
$custom-light: #7268bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2fa0",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 232.558,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37956,
    "c": 0.18076,
    "h": 268.8
  },
  "luminance": 0.04862
}

Semantic roles & 50–950 ramp

primary
#1F2FA0
secondary
#C3B658
accent
#D53DEA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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