#1F2A83#1F2A83

#1F2A83 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.148 H 270.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2A83
RGBrgb(31, 42, 131)
HSLhsl(233, 62%, 32%)
HSVhsv(233, 76%, 51%)
CMYKcmyk(76.3%, 67.9%, 0%, 48.6%)
CIE-LABlab(22.25, 28.39, -51.18)
CIE-LCHlch(22.25, 58.53, 299.01°)
OKLaboklab(34.12% 0.0016 -0.148)
OKLCHoklch(34.12% 0.148 270.6)
XYZxyz(5.4884, 3.5854, 21.8711)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A83 #83781F
analogous
#1F5C83 #1F2A83 #461F83
triadic
#1F2A83 #831F2A #2A831F
tetradic
#1F2A83 #831F5C #83781F #1F8346
square
#1F2A83 #831F5C #83781F #1F8346
split-complementary
#1F2A83 #83461F #5C831F
monochromatic
#080A20 #131A52 #1F2A83 #2B3AB4 #4958D4

Accessibility & contrast

On white

12.23
#1F2A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A83
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A83#FFFFFF#000000##FFFFFF
##1F2A831.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2a83;
/* rgb */ color: rgb(31, 42, 131);
/* oklch */ color: oklch(34.1% 0.148 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b63a8',
    500: '#1f2a83',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a83;
$custom-light: #6b63a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a83",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 131
  },
  "hsl": {
    "h": 233.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34116,
    "c": 0.14802,
    "h": 270.6
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#1F2A83
secondary
#B6AA48
accent
#D343E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1F2A83

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

Preview Lab → · Contrast checker → · Palette generator →

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