#242A88#242A88

#242A88 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.153 H 272.5°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#242A88
RGBrgb(36, 42, 136)
HSLhsl(236, 58%, 34%)
HSVhsv(236, 74%, 53%)
CMYKcmyk(73.5%, 69.1%, 0%, 46.7%)
CIE-LABlab(23.03, 30.85, -53.03)
CIE-LCHlch(23.03, 61.35, 300.19°)
OKLaboklab(34.91% 0.0067 -0.1533)
OKLCHoklch(34.91% 0.153 272.5)
XYZxyz(5.9980, 3.8080, 23.7067)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A88 #888224
analogous
#245C88 #242A88 #502488
triadic
#242A88 #88242A #2A8824
tetradic
#242A88 #88245C #888224 #248850
square
#242A88 #88245C #888224 #248850
split-complementary
#242A88 #885024 #5C8824
monochromatic
#0A0C27 #171B58 #242A88 #3139B8 #555CD2

Accessibility & contrast

On white

11.92
#242A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242A88
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A88#FFFFFF#000000##FFFFFF
##242A881.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242a88;
/* rgb */ color: rgb(36, 42, 136);
/* oklch */ color: oklch(34.9% 0.153 272.5);
Tailwind
colors: {
  custom: {
    50: '#6e64ac',
    500: '#242a88',
    950: '#000000',
  },
}
SCSS
$custom: #242a88;
$custom-light: #6e64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242a88",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 236.4,
    "s": 58.14,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.15345,
    "h": 272.5
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#242A88
secondary
#B6B052
accent
#D846E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #242A88

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

Preview Lab → · Contrast checker → · Palette generator →

#242A88 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva