#1F285E#1F285E

#1F285E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.096 H 272.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1F285E
RGBrgb(31, 40, 94)
HSLhsl(231, 50%, 25%)
HSVhsv(231, 67%, 37%)
CMYKcmyk(67%, 57.4%, 0%, 63.1%)
CIE-LABlab(18.44, 15.39, -33.53)
CIE-LCHlch(18.44, 36.90, 294.65°)
OKLaboklab(30.28% 0.0038 -0.0962)
OKLCHoklch(30.28% 0.096 272.2)
XYZxyz(3.3436, 2.6168, 10.9164)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F285E #5E551F
analogous
#1F485E #1F285E #361F5E
triadic
#1F285E #5E1F28 #285E1F
tetradic
#1F285E #5E1F48 #5E551F #1F5E36
square
#1F285E #5E1F48 #5E551F #1F5E36
split-complementary
#1F285E #5E361F #485E1F
monochromatic
#080A17 #101430 #1F285E #2E3C8C #3D4FBA

Accessibility & contrast

On white

13.78
#1F285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F285E
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F285E#FFFFFF#000000##FFFFFF
##1F285E1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053060
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f285e;
/* rgb */ color: rgb(31, 40, 94);
/* oklch */ color: oklch(30.3% 0.096 272.2);
Tailwind
colors: {
  custom: {
    50: '#62618c',
    500: '#1f285e',
    950: '#000000',
  },
}
SCSS
$custom: #1f285e;
$custom-light: #62618c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f285e",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 231.429,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30278,
    "c": 0.0963,
    "h": 272.2
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#1F285E
secondary
#938846
accent
#C64EDA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #1F285E

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

Preview Lab → · Contrast checker → · Palette generator →

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