#1F245F#1F245F

#1F245F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.5% C 0.104 H 274.5°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#1F245F
RGBrgb(31, 36, 95)
HSLhsl(235, 51%, 25%)
HSVhsv(235, 67%, 37%)
CMYKcmyk(67.4%, 62.1%, 0%, 62.7%)
CIE-LABlab(17.36, 18.66, -35.94)
CIE-LCHlch(17.36, 40.50, 297.44°)
OKLaboklab(29.5% 0.0081 -0.1034)
OKLCHoklch(29.5% 0.104 274.5)
XYZxyz(3.2608, 2.3790, 11.1116)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F245F #5F5A1F
analogous
#1F445F #1F245F #3A1F5F
triadic
#1F245F #5F1F24 #245F1F
tetradic
#1F245F #5F1F44 #5F5A1F #1F5F3A
square
#1F245F #5F1F44 #5F5A1F #1F5F3A
split-complementary
#1F245F #5F3A1F #445F1F
monochromatic
#080917 #101331 #1F245F #2E358D #3D47BB

Accessibility & contrast

On white

14.23
#1F245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1F245F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F245F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F245F#FFFFFF#000000##FFFFFF
##1F245F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f245f;
/* rgb */ color: rgb(31, 36, 95);
/* oklch */ color: oklch(29.5% 0.104 274.5);
Tailwind
colors: {
  custom: {
    50: '#635e8d',
    500: '#1f245f',
    950: '#000000',
  },
}
SCSS
$custom: #1f245f;
$custom-light: #635e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f245f",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 235.313,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.295,
    "c": 0.10367,
    "h": 274.5
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#1F245F
secondary
#948E46
accent
#CF4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F245F

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

Preview Lab → · Contrast checker → · Palette generator →

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