#1F2E72#1F2E72

#1F2E72 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.3% C 0.118 H 269.5°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#1F2E72
RGBrgb(31, 46, 114)
HSLhsl(229, 57%, 28%)
HSVhsv(229, 73%, 45%)
CMYKcmyk(72.8%, 59.6%, 0%, 55.3%)
CIE-LABlab(21.80, 19.00, -41.12)
CIE-LCHlch(21.80, 45.30, 294.80°)
OKLaboklab(33.31% -0.0011 -0.1184)
OKLCHoklch(33.31% 0.118 269.5)
XYZxyz(4.5783, 3.4598, 16.3428)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E72 #72631F
analogous
#1F5772 #1F2E72 #391F72
triadic
#1F2E72 #721F2E #2E721F
tetradic
#1F2E72 #721F57 #72631F #1F7239
square
#1F2E72 #721F57 #72631F #1F7239
split-complementary
#1F2E72 #72391F #57721F
monochromatic
#070A18 #121B42 #1F2E72 #2C41A2 #4059CB

Accessibility & contrast

On white

12.41
#1F2E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E72
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E72#FFFFFF#000000##FFFFFF
##1F2E721.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2e72;
/* rgb */ color: rgb(31, 46, 114);
/* oklch */ color: oklch(33.3% 0.118 269.5);
Tailwind
colors: {
  custom: {
    50: '#67669b',
    500: '#1f2e72',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e72;
$custom-light: #67669b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e72",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 229.157,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33309,
    "c": 0.11846,
    "h": 269.5
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#1F2E72
secondary
#A69547
accent
#C547E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2E72

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

Preview Lab → · Contrast checker → · Palette generator →

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