#1F2E78#1F2E78

#1F2E78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.127 H 269.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#1F2E78
RGBrgb(31, 46, 120)
HSLhsl(230, 59%, 30%)
HSVhsv(230, 74%, 47%)
CMYKcmyk(74.2%, 61.7%, 0%, 52.9%)
CIE-LABlab(22.31, 21.37, -44.13)
CIE-LCHlch(22.31, 49.03, 295.84°)
OKLaboklab(33.85% -0.001 -0.1273)
OKLCHoklch(33.85% 0.127 269.6)
XYZxyz(4.9311, 3.6009, 18.2008)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E78 #78691F
analogous
#1F5A78 #1F2E78 #3D1F78
triadic
#1F2E78 #781F2E #2E781F
tetradic
#1F2E78 #781F5A #78691F #1F783D
square
#1F2E78 #781F5A #78691F #1F783D
split-complementary
#1F2E78 #783D1F #5A781F
monochromatic
#060918 #121B47 #1F2E78 #2C41A9 #435ACE

Accessibility & contrast

On white

12.21
#1F2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E78
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E78#FFFFFF#000000##FFFFFF
##1F2E781.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2e78;
/* rgb */ color: rgb(31, 46, 120);
/* oklch */ color: oklch(33.8% 0.127 269.6);
Tailwind
colors: {
  custom: {
    50: '#6866a0',
    500: '#1f2e78',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e78;
$custom-light: #6866a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e78",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 229.888,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33846,
    "c": 0.1273,
    "h": 269.6
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#1F2E78
secondary
#AB9B47
accent
#C846E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1F2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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