#1F3181#1F3181

#1F3181 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.136 H 268.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#1F3181
RGBrgb(31, 49, 129)
HSLhsl(229, 61%, 31%)
HSVhsv(229, 76%, 51%)
CMYKcmyk(76%, 62%, 0%, 49.4%)
CIE-LABlab(23.91, 22.82, -47.21)
CIE-LCHlch(23.91, 52.44, 295.80°)
OKLaboklab(35.28% -0.0033 -0.1363)
OKLCHoklch(35.28% 0.136 268.6)
XYZxyz(5.6245, 4.0723, 21.2542)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3181 #816F1F
analogous
#1F6281 #1F3181 #3E1F81
triadic
#1F3181 #811F31 #31811F
tetradic
#1F3181 #811F62 #816F1F #1F813E
square
#1F3181 #811F62 #816F1F #1F813E
split-complementary
#1F3181 #813E1F #62811F
monochromatic
#070C1E #131E50 #1F3181 #2B44B2 #4761D3

Accessibility & contrast

On white

11.57
#1F3181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F3181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3181
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3181#FFFFFF#000000##FFFFFF
##1F31811.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f3181;
/* rgb */ color: rgb(31, 49, 129);
/* oklch */ color: oklch(35.3% 0.136 268.6);
Tailwind
colors: {
  custom: {
    50: '#6a68a6',
    500: '#1f3181',
    950: '#000000',
  },
}
SCSS
$custom: #1f3181;
$custom-light: #6a68a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3181",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 228.98,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35282,
    "c": 0.13634,
    "h": 268.6
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#1F3181
secondary
#B4A048
accent
#C743E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F3181

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

Preview Lab → · Contrast checker → · Palette generator →

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