#1F236F#1F236F

#1F236F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.129 H 273.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#1F236F
RGBrgb(31, 35, 111)
HSLhsl(237, 56%, 28%)
HSVhsv(237, 72%, 44%)
CMYKcmyk(72.1%, 68.5%, 0%, 56.5%)
CIE-LABlab(18.54, 25.52, -44.49)
CIE-LCHlch(18.54, 51.29, 299.84°)
OKLaboklab(30.82% 0.0082 -0.1285)
OKLCHoklch(30.82% 0.129 273.7)
XYZxyz(4.0344, 2.6407, 15.3329)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F236F #6F6B1F
analogous
#1F4B6F #1F236F #431F6F
triadic
#1F236F #6F1F23 #236F1F
tetradic
#1F236F #6F1F4B #6F6B1F #1F6F43
square
#1F236F #6F1F4B #6F6B1F #1F6F43
split-complementary
#1F236F #6F431F #4B6F1F
monochromatic
#070818 #12143F #1F236F #2C329F #3F46C9

Accessibility & contrast

On white

13.74
#1F236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F236F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F236F#FFFFFF#000000##FFFFFF
##1F236F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f236f;
/* rgb */ color: rgb(31, 35, 111);
/* oklch */ color: oklch(30.8% 0.129 273.7);
Tailwind
colors: {
  custom: {
    50: '#675e99',
    500: '#1f236f',
    950: '#000000',
  },
}
SCSS
$custom: #1f236f;
$custom-light: #675e99;
$custom-dark: #000000;
JSON
{
  "hex": "#1f236f",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 237,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3082,
    "c": 0.12874,
    "h": 273.7
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#1F236F
secondary
#A39E47
accent
#D848E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F236F

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

Preview Lab → · Contrast checker → · Palette generator →

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