#1F2E79#1F2E79

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

Color values

HEX#1F2E79
RGBrgb(31, 46, 121)
HSLhsl(230, 59%, 30%)
HSVhsv(230, 74%, 47%)
CMYKcmyk(74.4%, 62%, 0%, 52.5%)
CIE-LABlab(22.39, 21.77, -44.62)
CIE-LCHlch(22.39, 49.65, 296.00°)
OKLaboklab(33.94% -0.001 -0.1287)
OKLCHoklch(33.94% 0.129 269.6)
XYZxyz(4.9921, 3.6253, 18.5221)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E79 #796A1F
analogous
#1F5B79 #1F2E79 #3D1F79
triadic
#1F2E79 #791F2E #2E791F
tetradic
#1F2E79 #791F5B #796A1F #1F793D
square
#1F2E79 #791F5B #796A1F #1F793D
split-complementary
#1F2E79 #793D1F #5B791F
monochromatic
#060918 #131B48 #1F2E79 #2B41AA #435BCF

Accessibility & contrast

On white

12.17
#1F2E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E79
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E79#FFFFFF#000000##FFFFFF
##1F2E791.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2e79;
/* rgb */ color: rgb(31, 46, 121);
/* oklch */ color: oklch(33.9% 0.129 269.6);
Tailwind
colors: {
  custom: {
    50: '#6866a0',
    500: '#1f2e79',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e79;
$custom-light: #6866a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e79",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 230,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33937,
    "c": 0.12875,
    "h": 269.6
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#1F2E79
secondary
#AC9C47
accent
#C845E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1F2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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