#1B295F#1B295F

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

Color values

HEX#1B295F
RGBrgb(27, 41, 95)
HSLhsl(228, 56%, 24%)
HSVhsv(228, 72%, 37%)
CMYKcmyk(71.6%, 56.8%, 0%, 62.7%)
CIE-LABlab(18.56, 14.31, -34.01)
CIE-LCHlch(18.56, 36.90, 292.81°)
OKLaboklab(30.33% -0.0018 -0.0977)
OKLCHoklch(30.33% 0.098 268.9)
XYZxyz(3.3098, 2.6448, 11.1603)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B295F #5F511B
analogous
#1B4B5F #1B295F #2F1B5F
triadic
#1B295F #5F1B29 #295F1B
tetradic
#1B295F #5F1B4B #5F511B #1B5F2F
square
#1B295F #5F1B4B #5F511B #1B5F2F
split-complementary
#1B295F #5F2F1B #4B5F1B
monochromatic
#070A18 #0D142F #1B295F #293E8F #3652BE

Accessibility & contrast

On white

13.73
#1B295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B295F
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B295F#FFFFFF#000000##FFFFFF
##1B295F1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053061
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b295f;
/* rgb */ color: rgb(27, 41, 95);
/* oklch */ color: oklch(30.3% 0.098 268.9);
Tailwind
colors: {
  custom: {
    50: '#61628d',
    500: '#1b295f',
    950: '#000000',
  },
}
SCSS
$custom: #1b295f;
$custom-light: #61628d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b295f",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 227.647,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30327,
    "c": 0.09774,
    "h": 268.9
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#1B295F
secondary
#958341
accent
#C049DF
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #1B295F

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

Preview Lab → · Contrast checker → · Palette generator →

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