#1F245D#1F245D

#1F245D is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.101 H 274.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1F245D
RGBrgb(31, 36, 93)
HSLhsl(235, 50%, 24%)
HSVhsv(235, 67%, 36%)
CMYKcmyk(66.7%, 61.3%, 0%, 63.5%)
CIE-LABlab(17.19, 17.89, -34.89)
CIE-LCHlch(17.19, 39.21, 297.14°)
OKLaboklab(29.32% 0.008 -0.1003)
OKLCHoklch(29.32% 0.101 274.6)
XYZxyz(3.1711, 2.3431, 10.6390)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F245D #5D581F
analogous
#1F435D #1F245D #391F5D
triadic
#1F245D #5D1F24 #245D1F
tetradic
#1F245D #5D1F43 #5D581F #1F5D39
square
#1F245D #5D1F43 #5D581F #1F5D39
split-complementary
#1F245D #5D391F #435D1F
monochromatic
#080917 #10122F #1F245D #2E368B #3E48B9

Accessibility & contrast

On white

14.30
#1F245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F245D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F245D
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F245D#FFFFFF#000000##FFFFFF
##1F245D1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f245d;
/* rgb */ color: rgb(31, 36, 93);
/* oklch */ color: oklch(29.3% 0.101 274.6);
Tailwind
colors: {
  custom: {
    50: '#625e8b',
    500: '#1f245d',
    950: '#000000',
  },
}
SCSS
$custom: #1f245d;
$custom-light: #625e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f245d",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 235.161,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29321,
    "c": 0.10058,
    "h": 274.6
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#1F245D
secondary
#928C46
accent
#CE4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F245D

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

Preview Lab → · Contrast checker → · Palette generator →

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