Crayola crayon color

Crayola Denim #2B6CC4

Crayola Denim is shown here as #2B6CC4, the commonly published value for the crayon. It is a soft blue in the blue family. In OKLCH it sits at lightness 0.537, chroma 0.152 and hue 257.2°. The nearest CSS named color is royalblue (#4169E1), ΔE2000 5.8 away.

Relative luminance
0.1522
OKLCH L · C · h
0.537 · 0.152 · 257.2
Best text
White 5.19:1
Hue family
Blue

#2B6CC4 color codes

HEX
#2B6CC4
RGB
rgb(43, 108, 196)
HSL
hsl(215, 64%, 47%)
OKLCH
oklch(0.537 0.152 257.2)
OKLab
oklab(0.537 -0.034 -0.149)
CIELAB (D65)
L* 45.94, a* 10.93, b* -51.81
XYZ (D65)
X 16.32, Y 15.22, Z 54.29
CMYK (naive)
cmyk(78%, 45%, 0%, 23%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Crayola is a trademark of Crayola LLC, which this site is not affiliated with. The value is the commonly published sRGB rendering of the crayon, not a Crayola specification.

Legibility

Contrast: is #2B6CC4 accessible?

White text on it reaches 5.19:1, passing AA. Black text manages only 4.04:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    4.04:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +28
  • White text on it

    5.19:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −80
  • As text on black

    4.04:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −26
  • As text on white

    5.19:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +75

Nearest versions that pass 4.5:1

  • For text on white

    #2B6CC4 5.19:1

    It already reaches 5.19:1 on white, so no change is needed.

  • For text on black

    #3374CC 4.51:1

    Lightening its OKLCH lightness from 0.54 to 0.56 reaches 4.51:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #2B6CC4 live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #2B6CC4

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #2B6CC4 sits at step 600.

  1. 50#EFF6FF
    White
    1.08
    Black
    19.29
  2. 100#DFECFF
    White
    1.19
    Black
    17.57
  3. 200#BFDAFF
    White
    1.42
    Black
    14.68
  4. 300#94C0FF
    White
    1.86
    Black
    11.24
  5. 400#61A2FD
    White
    2.59
    Black
    8.09
  6. 500#4586E0
    White
    3.65
    Black
    5.73
  7. 600This color#2B6CC4
    White
    5.19
    Black
    4.04
  8. 700#1455A8
    White
    7.25
    Black
    2.89
  9. 800#003C84
    White
    10.60
    Black
    1.97
  10. 900#002659
    White
    14.77
    Black
    1.42
  11. 950#001436
    White
    18.20
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #2B6CC4 can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.192; #2B6CC4 uses 79% of it. Display P3, which many recent phones and laptops show, reaches 0.244 there: 27% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.152
sRGB edge
0.192
Display P3 edge
0.244
Rec. 2020 edge
0.281
Dominant wavelength
474 nm
Excitation purity
61%
Chromaticity
x 0.1901, y 0.1773
  • This color#2B6CC4
  • Most vivid in sRGB#0068DA
  • Most vivid in Display P3oklch(0.537 0.244 257.2)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #2b6cc4;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.3697 0.9306); }
}

Mixing

Mixing #2B6CC4

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#95B6E2
  • OKLab50%#95B6E5
  • OKLCH50%#95B6E5

Black #000000

  • sRGB50%#163662
  • OKLab50%#0A254A
  • OKLCH50%#0A254A

Its complement #926400

  • sRGB50%#5F6862
  • OKLab50%#676F7A
  • OKLCH50%#008261
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #2b6cc4, white);
color: color-mix(in oklch, #2b6cc4 50%, white);

In use

#2B6CC4 in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.19:1 Passes
  • Link and body-size textText, 4.5:15.19:1 Passes
  • Large headingLarge text, 3:15.19:1 Passes
  • Icons, borders and focus ringsNon-text, 3:15.19:1 Passes

Dark page

  • Button labelText, 4.5:15.19:1 Passes
  • Link and body-size textText, 4.5:13.60:1 Fails
  • Large headingLarge text, 3:13.60:1 Passes
  • Icons, borders and focus ringsNon-text, 3:13.60:1 Passes

For text on this page, the nearest shade that passes is #3C7DD6 4.54:1

Color vision

How #2B6CC4 looks with color blindness

Achromatopsia changes it most, ΔE2000 24.2; deuteranopia changes it least, 2.1.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #3E74C7 ΔE2000 3.1

    Close match

    Reads as soft blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #1D66C2 ΔE2000 2.1

    Close match

    Reads as soft blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #00818E ΔE2000 23.2

    Distinct

    Reads as muted cyan

  • Achromatopsia

    No cone color vision; lightness only

    #6D6D6D ΔE2000 24.2

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #926400. Their lightness contrast is only 1.00:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#2B6CC4 · #92640050.9Stays distinct
Protanopia#3E74C7 · #75660053.0Stays distinct
Deuteranopia#1D66C2 · #80710755.6Stays distinct
Tritanopia#00818E · #A0575452.8Stays distinct
Achromatopsia#6D6D6D · #6D6D6D0.0Easily confused

Harmony

Color harmonies for #2B6CC4

Its complement is #926400, a soft brown, on the warm side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#2B6CC4
  • Complement#926400

Complementary

Open in Harmony Studio
  • −30°#00799C
  • Base#2B6CC4
  • +30°#6B5BC0
  • Base#2B6CC4
  • +120°#B53F4D
  • +240°#3D8116
  • Base#2B6CC4
  • +150°#B04B00
  • +210°#767200

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-crayola-denim: #2b6cc4;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'crayola-denim': '#2b6cc4',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-crayola-denim: oklch(0.537 0.152 257.2);
}

Design token (W3C DTCG)

{
  "color": {
    "crayola-denim": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.1686, 0.4235, 0.7686],
        "hex": "#2b6cc4"
      },
      "$description": "Crayola Denim"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let crayolaDenim = Color(.sRGB, red: 0.169, green: 0.424, blue: 0.769, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val CrayolaDenim = Color(0xFF2B6CC4)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #2B6CC4 in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.