#1F315E#1F315E

#1F315E is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.083 H 265.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#1F315E
RGBrgb(31, 49, 94)
HSLhsl(223, 50%, 25%)
HSVhsv(223, 67%, 37%)
CMYKcmyk(67%, 47.9%, 0%, 63.1%)
CIE-LABlab(21.19, 8.89, -29.11)
CIE-LCHlch(21.19, 30.44, 286.98°)
OKLaboklab(32.37% -0.0064 -0.0831)
OKLCHoklch(32.37% 0.083 265.6)
XYZxyz(3.6831, 3.2958, 11.0296)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F315E #5E4C1F
analogous
#1F515E #1F315E #2D1F5E
triadic
#1F315E #5E1F31 #315E1F
tetradic
#1F315E #5E1F51 #5E4C1F #1F5E2D
square
#1F315E #5E1F51 #5E4C1F #1F5E2D
split-complementary
#1F315E #5E2D1F #515E1F
monochromatic
#080C17 #101930 #1F315E #2E498C #3D61BA

Accessibility & contrast

On white

12.66
#1F315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F315E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F315E#FFFFFF#000000##FFFFFF
##1F315E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3660
Deuteranopia (green-blind)
#12305D
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f315e;
/* rgb */ color: rgb(31, 49, 94);
/* oklch */ color: oklch(32.4% 0.083 265.6);
Tailwind
colors: {
  custom: {
    50: '#62688c',
    500: '#1f315e',
    950: '#000000',
  },
}
SCSS
$custom: #1f315e;
$custom-light: #62688c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f315e",
  "rgb": {
    "r": 31,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 222.857,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.32369,
    "c": 0.08333,
    "h": 265.6
  },
  "luminance": 0.03296
}

Semantic roles & 50–950 ramp

primary
#1F315E
secondary
#937D46
accent
#B24EDA
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060C
muted
#7A7A7D

Preview Lab

Preview with #1F315E

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

Preview Lab → · Contrast checker → · Palette generator →

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