#1F225F#1F225F

#1F225F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.107 H 275.4°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#1F225F
RGBrgb(31, 34, 95)
HSLhsl(237, 51%, 25%)
HSVhsv(237, 67%, 37%)
CMYKcmyk(67.4%, 64.2%, 0%, 62.7%)
CIE-LABlab(16.80, 20.09, -36.85)
CIE-LCHlch(16.80, 41.97, 298.60°)
OKLaboklab(29.09% 0.0101 -0.106)
OKLCHoklch(29.09% 0.107 275.4)
XYZxyz(3.2020, 2.2613, 11.0920)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F225F #5F5C1F
analogous
#1F425F #1F225F #3C1F5F
triadic
#1F225F #5F1F22 #225F1F
tetradic
#1F225F #5F1F42 #5F5C1F #1F5F3C
square
#1F225F #5F1F42 #5F5C1F #1F5F3C
split-complementary
#1F225F #5F3C1F #425F1F
monochromatic
#080817 #101131 #1F225F #2E338D #3D43BB

Accessibility & contrast

On white

14.46
#1F225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F225F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F225F
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F225F#FFFFFF#000000##FFFFFF
##1F225F1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f225f;
/* rgb */ color: rgb(31, 34, 95);
/* oklch */ color: oklch(29.1% 0.107 275.4);
Tailwind
colors: {
  custom: {
    50: '#635d8d',
    500: '#1f225f',
    950: '#000000',
  },
}
SCSS
$custom: #1f225f;
$custom-light: #635d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f225f",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 237.188,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29085,
    "c": 0.10653,
    "h": 275.4
  },
  "luminance": 0.02262
}

Semantic roles & 50–950 ramp

primary
#1F225F
secondary
#949046
accent
#D44EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F225F

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

Preview Lab → · Contrast checker → · Palette generator →

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