#1F2A67#1F2A67

#1F2A67 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.107 H 271.2°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#1F2A67
RGBrgb(31, 42, 103)
HSLhsl(231, 54%, 26%)
HSVhsv(231, 70%, 40%)
CMYKcmyk(69.9%, 59.2%, 0%, 59.6%)
CIE-LABlab(19.75, 17.50, -37.33)
CIE-LCHlch(19.75, 41.23, 295.11°)
OKLaboklab(31.49% 0.0022 -0.1074)
OKLCHoklch(31.49% 0.107 271.2)
XYZxyz(3.8404, 2.9262, 13.1918)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A67 #675C1F
analogous
#1F4E67 #1F2A67 #381F67
triadic
#1F2A67 #671F2A #2A671F
tetradic
#1F2A67 #671F4E #675C1F #1F6738
square
#1F2A67 #671F4E #675C1F #1F6738
split-complementary
#1F2A67 #67381F #4E671F
monochromatic
#070A18 #111738 #1F2A67 #2D3D96 #3C51C4

Accessibility & contrast

On white

13.25
#1F2A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A67
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A67#FFFFFF#000000##FFFFFF
##1F2A671.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#003944
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2a67;
/* rgb */ color: rgb(31, 42, 103);
/* oklch */ color: oklch(31.5% 0.107 271.2);
Tailwind
colors: {
  custom: {
    50: '#646393',
    500: '#1f2a67',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a67;
$custom-light: #646393;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a67",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 103
  },
  "hsl": {
    "h": 230.833,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31487,
    "c": 0.1074,
    "h": 271.2
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#1F2A67
secondary
#9B8E46
accent
#C74BDD
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #1F2A67

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

Preview Lab → · Contrast checker → · Palette generator →

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