#1F2E80#1F2E80

#1F2E80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.139 H 269.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#1F2E80
RGBrgb(31, 46, 128)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 76%, 50%)
CMYKcmyk(75.8%, 64.1%, 0%, 49.8%)
CIE-LABlab(23.01, 24.51, -48.05)
CIE-LCHlch(23.01, 53.94, 297.02°)
OKLaboklab(34.59% -0.0011 -0.1388)
OKLCHoklch(34.59% 0.139 269.6)
XYZxyz(5.4370, 3.8032, 20.8654)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E80 #80711F
analogous
#1F5E80 #1F2E80 #401F80
triadic
#1F2E80 #801F2E #2E801F
tetradic
#1F2E80 #801F5E #80711F #1F8040
square
#1F2E80 #801F5E #80711F #1F8040
split-complementary
#1F2E80 #80401F #5E801F
monochromatic
#070B1D #131C4F #1F2E80 #2B40B1 #475DD2

Accessibility & contrast

On white

11.93
#1F2E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E80
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E80#FFFFFF#000000##FFFFFF
##1F2E801.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2e80;
/* rgb */ color: rgb(31, 46, 128);
/* oklch */ color: oklch(34.6% 0.139 269.6);
Tailwind
colors: {
  custom: {
    50: '#6a66a6',
    500: '#1f2e80',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e80;
$custom-light: #6a66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e80",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 128
  },
  "hsl": {
    "h": 230.722,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34588,
    "c": 0.1388,
    "h": 269.6
  },
  "luminance": 0.03804
}

Semantic roles & 50–950 ramp

primary
#1F2E80
secondary
#B3A248
accent
#CB44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E80

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

Preview Lab → · Contrast checker → · Palette generator →

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