#1F236E#1F236E

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

Color values

HEX#1F236E
RGBrgb(31, 35, 110)
HSLhsl(237, 56%, 28%)
HSVhsv(237, 72%, 43%)
CMYKcmyk(71.8%, 68.2%, 0%, 56.9%)
CIE-LABlab(18.45, 25.14, -44.00)
CIE-LCHlch(18.45, 50.68, 299.74°)
OKLaboklab(30.72% 0.0083 -0.127)
OKLCHoklch(30.72% 0.127 273.7)
XYZxyz(3.9796, 2.6188, 15.0446)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F236E #6E6A1F
analogous
#1F4A6E #1F236E #421F6E
triadic
#1F236E #6E1F23 #236E1F
tetradic
#1F236E #6E1F4A #6E6A1F #1F6E42
square
#1F236E #6E1F4A #6E6A1F #1F6E42
split-complementary
#1F236E #6E421F #4A6E1F
monochromatic
#070818 #12143E #1F236E #2C329E #3F46C9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F236E#FFFFFF#000000##FFFFFF
##1F236E1.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)
#003170
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f236e;
/* rgb */ color: rgb(31, 35, 110);
/* oklch */ color: oklch(30.7% 0.127 273.7);
Tailwind
colors: {
  custom: {
    50: '#675e98',
    500: '#1f236e',
    950: '#000000',
  },
}
SCSS
$custom: #1f236e;
$custom-light: #675e98;
$custom-dark: #000000;
JSON
{
  "hex": "#1f236e",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 236.962,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30721,
    "c": 0.12731,
    "h": 273.7
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#1F236E
secondary
#A29D47
accent
#D848DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F236E

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

Preview Lab → · Contrast checker → · Palette generator →

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