#1F245E#1F245E

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

Color values

HEX#1F245E
RGBrgb(31, 36, 94)
HSLhsl(235, 50%, 25%)
HSVhsv(235, 67%, 37%)
CMYKcmyk(67%, 61.7%, 0%, 63.1%)
CIE-LABlab(17.28, 18.28, -35.42)
CIE-LCHlch(17.28, 39.85, 297.30°)
OKLaboklab(29.41% 0.008 -0.1018)
OKLCHoklch(29.41% 0.102 274.5)
XYZxyz(3.2157, 2.3609, 10.8738)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F245E #5E591F
analogous
#1F445E #1F245E #3A1F5E
triadic
#1F245E #5E1F24 #245E1F
tetradic
#1F245E #5E1F44 #5E591F #1F5E3A
square
#1F245E #5E1F44 #5E591F #1F5E3A
split-complementary
#1F245E #5E3A1F #445E1F
monochromatic
#080917 #101230 #1F245E #2E368C #3D47BA

Accessibility & contrast

On white

14.26
#1F245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F245E
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F245E#FFFFFF#000000##FFFFFF
##1F245E1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f245e;
/* rgb */ color: rgb(31, 36, 94);
/* oklch */ color: oklch(29.4% 0.102 274.5);
Tailwind
colors: {
  custom: {
    50: '#635e8c',
    500: '#1f245e',
    950: '#000000',
  },
}
SCSS
$custom: #1f245e;
$custom-light: #635e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f245e",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 235.238,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2941,
    "c": 0.10213,
    "h": 274.5
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#1F245E
secondary
#938D46
accent
#CF4EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1F245E

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

Preview Lab → · Contrast checker → · Palette generator →

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